Viewing 15 posts - 136 through 150 (of 441 total)
You can use this query, which will result in the headers of the columns... But I'm not aware of a possibility to get the SQL datatypes of the columns.
Hope that...
November 2, 2009 at 2:25 pm
Thanks Silverfox,
From what I can see, I really have to go to the entity I gave the permissions from to see the access.
There is no way to see that for...
October 30, 2009 at 11:30 am
Sorry I couldn't post earlier,
You can add the ISNULL builtin function to pass a empty string to the quotename function when the value is null.
Here's how:
QuoteName(ISNULL(CompanyID,''),'''')
That behavior happens...
October 28, 2009 at 7:24 am
Well, looking more closely at your code, I can say the error you are getting comes from your IF Statement, and because you are referencing fields that are not in...
October 27, 2009 at 2:12 pm
Well, the first thing I saw was the multi cross join you have between the deleted, inserted, and your table, in your select, in the trigger. Next is you can't...
October 27, 2009 at 2:06 pm
Guys, this works perfectly, we've tested this, and this is just what I needed.
I got a question though, I'm not really strong security wise, maybe that's why.
I'm looking from some...
October 26, 2009 at 1:48 pm
Sorry I could not answer faster, I was in a meeting.
Nice guys, thanks a lot, this looks like exactly what I need, I will look into this.
Thanks again,
October 26, 2009 at 1:30 pm
In the update statement, you need to use the Alias that was created by Jack for the table name,
Where it's written
Update Orders
From Orders O
join Orders O2....
It should read...
October 22, 2009 at 1:08 pm
Well, it's a start, but you have not prepared the tables using Create table TableA, and most importantly, INSERT INTO Table
select bla bla bla
union all
select bla bla bla
union all ....
And...
October 21, 2009 at 1:54 pm
This is not an easy one, but it's doable. Do you have anything you have come up with, what are you working on right now?
Can you provide some testing data,...
October 21, 2009 at 1:43 pm
I did a quick test, and created a 20 GB database, took about 4-5 minutes, and ran completely. I'm on a developper machine, not too quick.
Few things:
1. Sp_who2 returned...
October 20, 2009 at 1:47 pm
Heh.. Yes! Index fragmentation and out of date are the MAIN performance problems for a system, just after really poor design of tables and/or poorly written queries.
You can find the...
October 19, 2009 at 1:33 pm
Well, you have no order by clause.. all you do is number your rows in the case statement, and you don't add the order by seq asc, at the bottom...
October 16, 2009 at 2:12 pm
matt6749 (10/16/2009)
;WITH cols
AS
(
SELECT table_name, column_name,
...
October 16, 2009 at 1:49 pm
Viewing 15 posts - 136 through 150 (of 441 total)