Viewing 15 posts - 5,056 through 5,070 (of 14,953 total)
The worry about "with with" is reasonably easily resolved by a second find-and-replace.
Here's what I'd do:
1. Use the "generate scripts" option to generate a single script with drop and...
February 9, 2011 at 6:15 am
nadabadan (2/8/2011)
GSquared (2/7/2011)
nzngh (2/6/2011)
February 8, 2011 at 2:07 pm
Edit: Double-post due to latency.
February 8, 2011 at 1:22 pm
Yes, that's how it works.
February 8, 2011 at 1:22 pm
It's probably lost its connection to the domain server. It usually takes a reboot to fix that, but a real network admin (which I am not) might have a...
February 8, 2011 at 1:07 pm
The convert version will bypass indexes on the datetime column, thus slowing the whole query down significantly. The range version can use indexes, and is thus usually much faster...
February 8, 2011 at 1:06 pm
Bing/Google/whatever "t-sql output". In SQL 2005, they added an "output" clause to insert/update/delete statements (works with merge as well, in SQL 2008).
It will give you all the IDs and...
February 8, 2011 at 1:05 pm
Here's a performance test I ran:
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#tmp') IS NOT NULL
DROP TABLE #tmp ;
IF OBJECT_ID(N'tempdb..#T1') IS NOT NULL
DROP TABLE...
February 8, 2011 at 1:01 pm
Does the SSRS report pull data from a query that connects to a database?
February 8, 2011 at 12:32 pm
Try this as well:
IF OBJECT_ID(N'tempdb..#tmp') IS NULL
BEGIN
CREATE TABLE #tmp (
...
February 8, 2011 at 12:31 pm
I'd have to see the underlying tables and some data from them to be sure, but this looks like a usual "pivot" attempt on a "one true lookup" table.
There are...
February 8, 2011 at 12:20 pm
I use a calendar table for that. It's just a table of dates and the data about them.
create table dbo.Calendar (
CalendarDate datetime primary key,-- Date datatype in SQL 2008
constraint...
February 8, 2011 at 11:09 am
Ferguson (2/8/2011)
Jack Corbett (2/8/2011)
Ferguson (2/8/2011)
Someone who as a young adult decides to...
February 8, 2011 at 10:59 am
Michael Valentine Jones (2/8/2011)
February 8, 2011 at 10:52 am
The simplest way would be to look at the definition of the proc and go from there.
February 8, 2011 at 9:29 am
Viewing 15 posts - 5,056 through 5,070 (of 14,953 total)