Viewing 15 posts - 16 through 30 (of 103 total)
Log in to SSMS as windows user and attach the DB that should resolve Read Only Marked DB issue if you are moving mdf and ldf files from other machines...
September 27, 2016 at 12:45 am
To be more specific .. I make huge transactions in database like delete and Insert and Update. Right after this transactions i Shrink the Database and take Transaction log back...
April 30, 2015 at 7:11 am
So will there be any issues in using with(NOLOCK) for sys schemas ? I had the habit of using every where in SQL Statements ..What would be the pros and...
February 24, 2015 at 3:22 pm
I need all columns if no Identity on the table as i am merging and Inserting the Columns data when Not Matched with Identity_Insert ON
for that i need to specify...
February 24, 2015 at 2:29 pm
So the solution would be like like below
SELECT CONVERT(CHAR(10),DATEADD(dd,DATEDIFF(dd,1,DATEADD(DW,-@Years,GETDATE()))/7*7,1),120)
February 5, 2015 at 8:09 am
The above script looks good 🙂 and how about not using the DATEFirst for the below code ? Thanks in advance
SELECT CONVERT(VARCHAR, DATEADD(WW,-@x,DATEADD(DD, -((@@DATEFIRST + DATEPART(DW, GETDATE()) -3)...
February 5, 2015 at 8:08 am
The Solution is as below
SELECT CONVERT(VARCHAR,DATEADD(yy, -@x, DATEADD(D, -((@@DATEFIRST + DATEPART(DW, DATEADD(yy,-@x ,GETDATE()) ) -3) % 7), GETDATE())) ,23)
February 4, 2015 at 11:07 am
To be more clear i am looking to get date of Tuesday for the x parameter year
Example:
Assume x = 1 (One Year)
-->Today is 02/04/2015 Is Wednesday
-->I need...
February 4, 2015 at 10:24 am
SO we do not have any Query for CU # ? that i can run on Server instead of looking it manually ?
Thanks in Advance
February 6, 2014 at 1:49 pm
Thank you so much .. that worked for me
October 15, 2013 at 11:47 am
Hi ,
All of the posts here work and the one i gave also works but i am looking for other ways of doing it in a simple manner and with...
October 9, 2013 at 9:54 am
here applying condition 99 is not needed as i need to delete all the rows in TableA with the same condition WHERE deleteflag is 1 for all the products
October 9, 2013 at 9:47 am
In TableA We don't have Product Column, It only in TableB
October 7, 2013 at 1:15 pm
I guess this Query will delete all rows in TableA
October 7, 2013 at 1:06 pm
my query would be as below
DELETE Table A
FROM TableA a
INNER JOIN TableB b ON b.ConsumerID = a.ConsumerID
WHERE a.ConsumerID IN
(
SELECT ConsumerID FROM TableB WHERE DeleteFlag= 1 AND ConsumerID NOT IN...
October 7, 2013 at 12:53 pm
Viewing 15 posts - 16 through 30 (of 103 total)