Viewing 15 posts - 2,851 through 2,865 (of 3,544 total)
When designing a table, if a column is going to contain a date then I automatically make it datetime. There are a lot of pros and cons on what dataype...
Far away is close at hand in the images of elsewhere.
Anon.
It is the RETURN value of the stored procedure. Every SQL Server stored procedure has this parameter (whether it is explicitly used or not).
Far away is close at hand in the images of elsewhere.
Anon.
If you want to remove the time portion from input dates then cast them to varchar(11). Is this the whole procedure? The reason I ask is that I question the...
Far away is close at hand in the images of elsewhere.
Anon.
The problem is that your table names are in a table and that is why you are using cursors.
How many 'Volume_Control.tblFilenames_' tables are there and what size are they (rows)....
Far away is close at hand in the images of elsewhere.
Anon.
Change the cursor2 declare to this
declare @sql nvarchar(4000)
set @sql = '
DECLARE cursor2 CURSOR
GLOBAL
DYNAMIC
FOR
SELECT sum(file_size_bytes) , Lseries from ' + @filename + ' group...
Far away is close at hand in the images of elsewhere.
Anon.
Ah! Thought so when I looked at the code as it did not look like traditional sql server.
Unfortunately I have not used Oracle and cannot help you, maybe someone else...
Far away is close at hand in the images of elsewhere.
Anon.
Could use fso but would have to trap errors
DECLARE @fso int
DECLARE @hr int
DECLARE @file int
DECLARE @iomode int
DECLARE @filename varchar(255)
SET @filename...
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 15 posts - 2,851 through 2,865 (of 3,544 total)