Viewing 15 posts - 11,746 through 11,760 (of 13,464 total)
in general, you'll see two ways to do this.
you can use a
SELECT * FROM TABLE1 WHERE [Client ID] in (SELECT [Client ID] FROM TABLE2 WHERE Trading_Code IN('ZBwhatever') )
or you...
January 20, 2009 at 8:14 am
i misread the original post;
here's a sample from my snippets where someone wanted a unique alphanumeric, in order, ie AAA001 thru ZZZ999;
the nubmer gets generated based on an identity.you could...
January 20, 2009 at 6:21 am
how about an Identity using a bigint column that starts with the first 16 digit number ?
create table #example( bigintID bigint identity(1000000000000000,1) primary key,
morestuff varchar(30) )
also why must it be...
January 20, 2009 at 6:15 am
remember SQL encryption is not all that strong, even in 2005, a simple Google search will allow anyone that can run a TSQL script see the un-encrypted text of something...
January 19, 2009 at 10:41 am
clearly any data without an arbitrary number next to it is worthless! everyone knows that! how else do you know who's number 1, or to give a goals to numbers...
January 16, 2009 at 2:36 pm
two things i think, but i could't get mine to work yet either.
4 part naming conventions are the limit.
select name FIVER.AHOG.dbo.sys.procedures is wrong
its probably FIVER.AHOG.sys.procedures not what you had....i tried...
January 16, 2009 at 11:12 am
I'm not familiar with your application, but here's a best guess: if the "files" deleted are really tables in SQL, the space isn't released unless you shrink the database.
can you...
January 16, 2009 at 10:02 am
must be an incomplete example...all your code that is commented out in your case statement returns c.SerialNumber1 NO Matter what....maybe you could show us a bit more?
Case
when a.DocumentId=...
January 16, 2009 at 8:48 am
try this; it gets the current default trace file, and gives the objects/created/altered/deleted.
this might help you:
[font="Courier New"]
-- obtain file name for Default Trace
DECLARE @TraceFileName NVARCHAR(256)
SET @TraceFileName = (SELECT path FROM sys.traces...
January 16, 2009 at 8:04 am
ok this nippet, based on using some FOR XML statements goves a SQL statement you could execute that looks like this:
SELECT * FROM MYSTAGE WHERE 1 = 2 ...
January 16, 2009 at 6:54 am
paste your real full Select statement here...it looks like you have a column name with a space in it, so it needs to be wrapped in brackets, ie [commision cost]
January 15, 2009 at 1:04 pm
your order by has to be the same...simply order by the same casting you did to get teh field itself:
ORDER BY Tools.UUCBIM, cast(Tools.JOBNOF as varchar(12)), Tools.FITEMF
January 15, 2009 at 12:49 pm
everything you posted (that showed up...some stuff got snipped out)
was related to a RTF field being justified. Are you trying to do the equivilent to raw text, or asking...
January 15, 2009 at 12:36 pm
wouldn't you simply identify the offending rows like this?
SELECT *
FROM YOUR STAGINGTABLE
WHERE isnumeric(col1) = 0
OR isdate(col2) = 0
OR len (Row1.col3)>...
January 15, 2009 at 12:24 pm
yeah replace"big query here" with your full SELECT...CASE...WHERE... statement that you are using...you had pasted just the cASE section as your example.
January 15, 2009 at 12:01 pm
Viewing 15 posts - 11,746 through 11,760 (of 13,464 total)