I nedd code to purge or clear sql server logs (current) not database logs - I nedd code to purge or clear sql server logs (current) not database logs
Reporting Services 2016 503 error on attempting to fix authentication - I have just installed a clean SSRS 2016 Express (and SQL 2016 Express) on a new laptop running Windows 10. The...
STDistance with SPATIAL INDEX QUERY TO SLOW :) - hi all, i have to following query : DECLARE @latitude float=31.24326 DECLARE @longitude float=34.79418 DECLARE @g geometry= geometry::Point(@longitude, @latitude, 4326); DECLARE @h...
Exclude zero till get first nonzero value.(use cte or select) - Hi Friends , input code : CREATE TABLE #First_nonzero ( value int ) GO INSERT INTO #First_nonzero VALUES (0), (0), (0), (0), (1), (2), (0), (3), (0) Expected_output : 1 2 0 3 0 please some one suggest me how...
Temp Table vs Permenant Table - Hello, I have a SP that uses 4 big temp tables and then inserts data in real sql table and then...
Dynamic query - Hi, In continuation with a previous topic I asked I still have issue with a new dynamic query (this is kind...
Script to stop service using XP_CMDSHELL, restore full and differential .bak files in a single script - Hi - I have a need to stop some application services based on the database environment I am refreshing, restore full...
Best method for Update then insert with single transaction - Guys- I have a table with 23 billion rows so Merge is out, as it scans the entire thing and has...
Cannot Execute SQL Configuration Manager - I have several SQL instances running on my development computer. One for SQL2008R@ (64), two for SQL2012 (64), and one...
Better method for computed column? - Hi all. Below I am creating 3 tables. Order_hdr (OH), Order_dtl (OD) and Product_Stat (PS). I had a static field in...
Find all 35 combinations in 7 numbers ? - I have a table like this : [IMG]http://i64.tinypic.com/biry21.jpg[/IMG] How can I get all possible 35 combinations of each date by SQL query. Thanks...
How to read XML - Hi All, I want to read/update values of Id1,Id2 in below XML which is stored in one of the table's XML...
Linked server error on SQLserver 2008R2 - Just getting this error when i try to create a Linked server from Server2 a SQLServer 2008 R2 server to...
"##MS_PolicyEventProcessingLogin##" errors - I installed the Oracle 11g client on my (Windows 2008 SPK2/SQL 2008 R2) and set up a Linked server to...
How to imbed an image into an email sent by dbmail - Hello all and thank you in advance for your time and expertise. I am sending out customer statements in email using...
Need Help! ETL Stored Procedure Used to Work but Now Very Slow - There is something bogging down our computer/server and causing job schedules to hang or fail and I cannot find it....
Same Query but different logical/physical reads - I have a same query to find MIN(download_id) but different data ranges in where clause. The criteria which has more...
Windows Authentication form Web application - I have SQL Server 2012 Standard installed on Windows Server 2008 R2 Datacenter. SQL is set to allow mix mode...
Bad Scalar Functions (or other UDF) - If you can share a story of a real scalar or multi-statement table UDF and how you fixed it, I'd...
SQLServerAgent Error: 32. [SQLSTATE 42000] (Error 22022) - Our maintenance job for recycling SQL Server Agent errorlog frequently fails with following error: ----------------------------------------------------------------------- SQLServerAgent Error: 32. [SQLSTATE 42000] (Error 22022) ----------------------------------------------------------------------- When...