Viewing 15 posts - 196 through 210 (of 342 total)
Are you running SQL 7.0? The REPLACE statement works for me the way you tested it originally. It seems like there was a setting to avoid *empty* strings.
As...
July 9, 2003 at 1:50 pm
You might try something like this (I didn't actually run this in SQL so you might need to adjust it)
DECLARE @selSQL NVARCHAR(2000), @colList VARCHAR(1500)
SET @colList = ''
SELECT @colList = @colList...
July 9, 2003 at 1:46 pm
I must be missing something. You are assigning values to @col001 and @col002, but never using them. Also - what happens if there are an odd number...
July 9, 2003 at 8:26 am
Ok - then I would probably use dynamic SQL.
DECLARE @selSQL NVARCHAR(2000), @Name1 VARCHAR(15), @Name2 VARCHAR(15)
SET @Name1 = 'Month1'
SET @selSQL = 'SELECT DISTINCT Month1/' + @Name1 + ', Month2/' + @Name1...
July 8, 2003 at 2:28 pm
Could you post a little more of the surrounding code? Is this something where the table name is changing as well? Will next months query look at the...
July 8, 2003 at 1:47 pm
Calvin, You might want to check why you are submitting duplicate responses. This happened in another topic as well.
Only Cheongww knows for sure, but it is my bet...
July 8, 2003 at 1:42 pm
You can reference the temporary table the same as a permanent one within the procedure. Your "SELECT * FROM #CashIn" would produce a recordset. Test it by running...
July 8, 2003 at 1:35 pm
ROCKO,
I don't see the use of a variable in the statement. Are you sure the error isn't somewhere else? Just for curiosity, why select top 100 percent? ...
July 8, 2003 at 1:27 pm
Sounds like you are using an ADO object to open a file. Try reading the result into a DataSet object instead. If you must read using adoObject.Open, you...
July 8, 2003 at 1:23 pm
Works the same as a normal table. Have you been having problems?
Guarddata-
July 8, 2003 at 1:10 pm
We generally implement your first suggestion. If you have to walk the result sets and call another procedure to localize, it requires much more processing of the data. ...
July 8, 2003 at 8:21 am
Are you talking about part of the condition or one of the column names, or are you retrieving data into the column?
Please post a sample.
Guarddata-
July 7, 2003 at 4:56 pm
Thanks Jay - I didn't read the second SQL in enough detail. Cheongww - I would suspect jpipes has given you the answer.
Guarddata-
July 7, 2003 at 12:44 pm
It will be a little difficult since the user is "sa" 90% of the time (or the db owner if not SA) You should be able to review the...
July 7, 2003 at 12:21 pm
Please take a look again at the first select statement...it references B2BError.warning but does not include the B2BError table. My guess is that this was a typo. Where...
July 7, 2003 at 11:18 am
Viewing 15 posts - 196 through 210 (of 342 total)