Viewing 15 posts - 991 through 1,005 (of 8,416 total)
Steve Jones - SSC Editor (1/25/2012)
Maybe you can do this?
If we had ever met in person, you would not need to even ask 🙂
January 25, 2012 at 11:55 am
Jack Corbett (1/25/2012)
That's too bad I was looking forward to seeing you there.
Well we have already met once in Boston, so I think it's only fair that for...
January 25, 2012 at 11:53 am
Another guess, just to pass the time:
SELECT
e.header1,
header2 = CASE WHEN GROUPING(e.header2) = 1 THEN 'Total' ELSE e.header2 END,
total...
January 25, 2012 at 11:31 am
I haven't responded because I don't know the answer. I was happy to answer the first question on this thread, but the new one is much harder to work...
January 25, 2012 at 11:21 am
January 24, 2012 at 11:49 pm
Here's the sample code from your first post, together with a starting point for a solution:
Sample data:
DECLARE @Example TABLE
(
header1 char(6) NOT NULL,
...
January 24, 2012 at 11:37 pm
Joe, I addressed most of your points with the code I posted, and comments made on other threads from this user. There is a learning process going on here;...
January 24, 2012 at 11:26 pm
CREATE TABLE dbo.Test
(
PostID integer IDENTITY PRIMARY KEY
);
See also these topics in Books Online (The SQL Server Help Library):
January 24, 2012 at 10:56 pm
Henrico Bekker (1/24/2012)
Some people might see this as a trick question, because no where does it state "Full Backup & Shrink THE SAME database"....
That's a fair point. I did...
January 24, 2012 at 10:21 pm
Kal Penn (1/24/2012)
Thanks Paul,So in your second SQL(Dynamic Parameterized SQL), since variable is not concatenated in WHERE condition (WHERE p.ProductID = @ProductID) is this what makes it 'Parameterized SQL'?
Explicitly defining...
January 24, 2012 at 10:18 pm
TheSQLGuru (1/24/2012)
I agree to those things Paul, but those other methods are also not very well known in the real world either.
This is why I mention them so much 😉
pCLR...
January 24, 2012 at 7:36 pm
Kal Penn (1/24/2012)
Thanks a lot. Is it possible for you to give me one example of each? Thanks
Sure:
DECLARE @parameter integer = 1;
-- Dynamic SQL
DECLARE @sql nvarchar(max) =
...
January 24, 2012 at 6:46 pm
Steve Jones - SSC Editor (1/24/2012)
But you can ski?
I tried snowboarding once (in a supervised inside environment[/url]) and that was enough to convince me that I have no natural affinity...
January 24, 2012 at 6:28 pm
Revenant (1/24/2012)
Ah... got it now. Thanks, Paul -- when we get together, I am buying. I hope you will make it to the MVP Summit 2012.
Thanks! Though I...
January 24, 2012 at 6:07 pm
mymail.default (1/24/2012)
Thanks for your input.But, I am able to search fine on my local machine (with SQL 2008 32bit), not so on the server (64bit).
I did install the filters too!
Check...
January 24, 2012 at 5:54 pm
Viewing 15 posts - 991 through 1,005 (of 8,416 total)