Viewing 15 posts - 18,796 through 18,810 (of 18,926 total)
if that doesn't help then you can have a look at DBCC CHECKTABLE (but I never used it so I can't provide much info).
December 6, 2004 at 11:26 am
Of course it should be what you said... must mean you're catching on.
December 6, 2004 at 11:17 am
I don't see the issue.. if the application can create/truncate it then they "should be able to" destroy it (unless denied permission is in place). But that's why stuff...
December 6, 2004 at 11:16 am
Check in the books online under sysobjects / sysobjects
C = Constraint CHECK
D = Default value or DEFAULT constraint
F = FOREIGN KEY Constraint
FN = Scalar User defined function (returns interger or...
December 6, 2004 at 11:12 am
Small fix (maybe it'll clear it up too 🙂 ) :
SELECT artists.artistID,
artists.firstName,
artists.lastName,
products.productID,
products.name,
products.price
FROM artists inner join artistsProducts
on artists.artistID = artistsProducts.productID inner join products on artistsProducts.artistID = products.productID
basically you are...
December 6, 2004 at 11:06 am
Select * from master.dbo.sysobjects where XType = 'X'
December 6, 2004 at 10:57 am
can't you create a sp that does the truncating job and then grant to that sp only when needed to only the users that need to execute it?
December 6, 2004 at 9:40 am
I think something like this would work.
SELECT identity (int, 0, 6) as salesseq, SeqNumberTemp.ProductNameFull, (CASE WHEN OrderTotal > 0 THEN (SalesTotalTemp.OrderTotal * SeqNumberTemp.margin) ELSE SeqNumberTemp.margin END) AS Total into #SomeTempTable...
December 6, 2004 at 6:51 am
Can't do it before monday morning. But i promess I'll do it then.
December 5, 2004 at 7:26 am
I already gave you an answer for this question at this adress
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=148386
also read Yoda's answer as he completes mine very well (talking about not inserting presentation data when not necessary).
December 3, 2004 at 6:31 am
SET @sql = 'SELECT JOB_id, job_desc
FROM JOBS WITH (NOLOCK)
WHERE JOB_id IN (' + @JobIDs + ')' +
'ORDER BY JOB_id'
Execute (@SQL)
consider this
Set @JobIDS = '''; Drop DATABASE master --'
or
Set @JobIDS...
December 2, 2004 at 2:07 pm
Dude it's the other way around.
The only time you'll ever be safe from sql injection using dynamic sql is when you do dba tasks (like for each databases in each...
December 2, 2004 at 1:23 pm
Listen to Yoda you must, far better and safer his solution is.
December 2, 2004 at 11:35 am
You'll need to do the update in only 1 query. The tricky part is that you seem to need to set a counter in the update query.
to do this...
December 2, 2004 at 2:16 am
Viewing 15 posts - 18,796 through 18,810 (of 18,926 total)