Viewing 15 posts - 2,956 through 2,970 (of 8,731 total)
pstanand (4/28/2016)
Hi,thanks for your information. Could you please provide me the correct query as I'm not aware of SQL Server queries.
Thanks
Regards,
pstanand
I did provide 2 queries which should be correct....
April 28, 2016 at 7:53 am
I would actually leave the last 3 subqueries. I'd probably move them to the from using the APPLY operator. The reason is that those seem to be unrelated quantities which...
April 28, 2016 at 7:39 am
mjagadeeswari (4/28/2016)
djj (4/28/2016)
ThomasRushton (4/28/2016)
Ed Wagner (4/28/2016)
whereisSQL? (4/27/2016)
jeff.mason (4/27/2016)
Luis Cazares (4/27/2016)
Ray K (4/27/2016)
Ed Wagner (4/27/2016)
Big BrotherBig Sister
Candace
Bergan
Actress
Lead
Balloon
Helium
Atom
Arrow
April 28, 2016 at 7:25 am
If they're all renaming queries, this could work.
WITH SampleData AS(
SELECT 'EXEC sp_rename @objname = N''PK_Filegroup_Tables_ID'', @newname = N''PK_FilegroupTables_ID'';' as Script UNION ALL
SELECT...
April 28, 2016 at 7:20 am
The operator BETWEEN is inclusive. The common way to do this is to write the range. Also, for using only dates, the ISO 8601 short format is preferred.
select count(1) from...
April 28, 2016 at 7:05 am
Ray K (4/27/2016)
Ed Wagner (4/27/2016)
Big BrotherBig Sister
Candace
April 27, 2016 at 10:38 am
Or if you're on 2012, you could use CONCAT.
SELECT ID,
STUFF(
...
April 27, 2016 at 10:34 am
Shorter version without the need of scalar functions.
DECLARE @Date SMALLDATETIME = GETDATE();
SELECT CONVERT( char(8), DATEADD(MM, DATEDIFF(MM, 0, @Date), -1), 112);
More formulas: http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/
April 27, 2016 at 9:57 am
cajsoft (4/27/2016)
Luis Cazares (4/26/2016)
Remember, with a good DB design this would be as easy as...
April 27, 2016 at 8:22 am
I agree with Sean comments. Database design can be something complex without the proper formation. For instance, you're not designing a table, you're designing a database with several tables.
You need...
April 27, 2016 at 8:15 am
Sean Lange (4/26/2016)
Alvin Ramard (4/26/2016)
Ed Wagner (4/26/2016)
Luis Cazares (4/26/2016)
Wonder if I should answer: "Using INSERT statements"http://www.sqlservercentral.com/Forums/Topic1781117-1550-1.aspx
Well, you would be correct. Tell them to create the table first. 😉
Tempted to...
April 26, 2016 at 1:34 pm
New persopn (4/26/2016)
I am not getting any references in online
Check this article: http://weblogs.sqlteam.com/jeffs/archive/...er.aspx
April 26, 2016 at 12:59 pm
New persopn (4/26/2016)
Currently I am capturing Audit information in to file.
How?
What are you auditing?
April 26, 2016 at 12:51 pm
Ed Wagner (4/26/2016)
whereisSQL? (4/26/2016)
Ed Wagner (4/26/2016)
Luis Cazares (4/26/2016)
Ray K (4/26/2016)
Ed Wagner (4/26/2016)
SongMusic
Sound
Waves
Ride
Horse
No Name
April 26, 2016 at 12:42 pm
Wonder if I should answer: "Using INSERT statements"
http://www.sqlservercentral.com/Forums/Topic1781117-1550-1.aspx
April 26, 2016 at 12:37 pm
Viewing 15 posts - 2,956 through 2,970 (of 8,731 total)