Viewing 15 posts - 9,061 through 9,075 (of 15,381 total)
AllanP999 (3/14/2013)
Great I now have the solution. Many thanks to you all.
Which one did you use or was it a combination? It would be great if you would share what...
March 15, 2013 at 8:08 am
vanapandi (3/15/2013)
i want to show sales details by daily basis and sum of Qty.
So do you only want to show columns for days? What happens when you have more than...
March 15, 2013 at 8:05 am
Dhananjay - did the example and explanation Lynn posted help you understand? The problem with datediff is calculates differences on a boundary. The results is how many of those boundaries...
March 15, 2013 at 7:54 am
Jeff Moden (3/14/2013)
Alan.B (3/7/2013)
For tables you would do this:
EXEC sp_MSforeachtable'SELECT TOP 1...
March 15, 2013 at 7:45 am
Lynn Pettis (3/14/2013)
Sean Lange (3/14/2013)
March 14, 2013 at 3:11 pm
seshagirikudaravalli (3/14/2013)
March 14, 2013 at 3:03 pm
Yes if there is no natural key you should add something like an identity column and make that your primary key.
March 14, 2013 at 3:01 pm
I haven't seen all the other threads but from what you posted I can't figure out why you are using DATEDIFF at all. It doesn't meet your requirements and it...
March 14, 2013 at 2:58 pm
duplicate post. Please direct all replies here. http://www.sqlservercentral.com/Forums/Topic1431270-392-1.aspx
March 14, 2013 at 2:53 pm
Bobby Glover (3/14/2013)
Thanks. Not using sa from the APP. Only when I update via SSMS it captures as sa.
Gotcha. Change the user you login to SSMS with your captured data...
March 14, 2013 at 1:50 pm
kevaburg (3/14/2013)
That is exactly the procedure I saw but I didn't read it...
March 14, 2013 at 1:24 pm
Bobby Glover (3/14/2013)
I have tried using Default Constraints SUSNAME_USER and adding an...
March 14, 2013 at 1:15 pm
Alan.B (3/14/2013)
kevaburg (3/14/2013)
What about using:exec sp_MSforeachview 'select top 1 from ?'
That is not a stored proc that comes from SQL Server. If you can run this:
exec sp_MSforeachview 'select top 1...
March 14, 2013 at 1:01 pm
Definitely need to provide more details. I would highly recommend that you use aliases in your queries. Your table names are very long and not terribly user friendly. I took...
March 14, 2013 at 10:57 am
rifayeem (3/14/2013)
March 14, 2013 at 9:52 am
Viewing 15 posts - 9,061 through 9,075 (of 15,381 total)