Viewing 15 posts - 526 through 540 (of 2,486 total)
Use CONVERT with a style parameter of 121, then just replace all the chars you don't need.
SELECT REPLACE( REPLACE( REPLACE( REPLACE( CONVERT(varchar(35), GetDate(), 121) , '.', '') , ':',...
December 1, 2005 at 2:38 pm
Using SQL-DMO, you'd have something like this,
Dim oSrvr ' SQL-DMO server object Dim oDb ' SQL-DMO database object Dim oQry ' SQL-DMO Query results object Dim sSQL ' SQL string to execute ...
November 30, 2005 at 2:58 pm
The behaviour you are witnessing is connected to the error messages you're getting. You have a table where the size greatly exceeds the maximum size and subsequently altering that table...
November 24, 2005 at 2:37 pm
Echoing David's post, this is an atrocious design. I reckon it would be pretty safe to say that the architect of this table has no idea about basic database design...
November 24, 2005 at 3:52 am
As you'll be using IDE, the disk I/O subsystem will be your bottleneck. Probably the best you could do is have two disks one on IDE1 the other on IDE2.
If...
November 22, 2005 at 8:29 pm
Well yes I did take your suggestion and try it, given the result I got I presumed you hadn't tried it first.
I changed the query in my initial post to...
November 22, 2005 at 8:18 pm
There is a big difference between calling in-built functions and your own user defined functions.
Take a look at a profiler trace and you will see exactly what
November 22, 2005 at 6:31 pm
Why create a function for something that can be achieved in on T-SQL statement?
November 22, 2005 at 5:42 pm
Your main problem with the workstation playing the role of the server will be the I/O subsystem, you don't normally have multiple SCSI arrays in a workstation? What sort of...
November 22, 2005 at 3:35 pm
Without seeing any of the code you're using it's a little hard to give an clear response.
Best guess would be that your executing the xp_cmdshell from the trigger and the...
November 22, 2005 at 3:21 pm
Are you sure thats what you need? Wouldn't this remove all zeros and not just the preceeding ones?
DECLARE @Var table (col1 varchar(10))INSERT INTO @var VALUES ( '000H.K6' ) INSERT...
November 22, 2005 at 3:12 pm
Given the way you are trying to achieve the result, you won't be able to do without the cursor. If the table list is long you could change the cursor to...
November 22, 2005 at 3:08 am
So basically you're running this SQL statement over every table in the database. Some of the tables don't contain the column you're referencing, so you want to ignore the "invalid...
November 21, 2005 at 11:33 pm
Ok, so I gather you get a text file with the T-SQL statments, still got no idea how you're executing the T-SQL.
If you're running a client application, like a VB...
November 21, 2005 at 10:31 pm
Viewing 15 posts - 526 through 540 (of 2,486 total)