Viewing 15 posts - 1,081 through 1,095 (of 1,838 total)
OK, thanks for your input!
February 22, 2017 at 1:50 pm
February 22, 2017 at 12:10 pm
Thanks for this, I'll have to see how I can do this on...
February 17, 2017 at 9:48 am
ah, sorry, forgot about sorting, to get the numbers to sort right would have to use an extra space in front of the 0-5 and 6-10:
SELECT...
February 13, 2017 at 2:53 pm
if you just want a row for each group, you need to calculate the ranges into a new column, maybe something like this:
SELECT dr.DaysRange, COUNT(*) AS...
February 13, 2017 at 10:05 am
February 13, 2017 at 9:29 am
I'm thinking your day ranges probably shouldn't overlap, so I'm assuming you mean 0-5, 6-10, 11-15, > 15
SELECT
February 10, 2017 at 3:04 pm
February 10, 2017 at 1:48 pm
OK, in your SQL Agent job on ServerA, you can have a step of type "Operating System (CmdExec)" that calls SQLCMD with the -i parameter to read the script that...
February 10, 2017 at 12:34 pm
edit: oops this idea doesn't work... still coming up with other ideas
February 10, 2017 at 12:23 pm
Maybe it would be easier to store the dynamic SQL statement into a table on server B instead of a file? Just thinking it's easier to avoid the external file...
February 10, 2017 at 12:00 pm
February 9, 2017 at 2:46 pm
it may make more sense to rename the current column, create the new identity column, set the IDENTITY_INSERT On for the table, UPDATE the new identity column from the renamed...
February 9, 2017 at 8:34 am
Some other things to consider:
- are there any SQL Agent jobs? You can script those out from the Object Explorer Detail window.
- are there any linked servers? You...
February 8, 2017 at 12:57 pm
I'd recommend against using the preparedocument method of shredding XML, this is the old SQL Server 2000 way of doing it and is memory and resource intensive. You can use...
February 8, 2017 at 7:02 am
Viewing 15 posts - 1,081 through 1,095 (of 1,838 total)