Viewing 15 posts - 16 through 30 (of 152 total)
Yech. Tuning dynamic queries can be one of the more troublesome issues. However, there is a way to start.
Get the SQL Statement that would be generated by the...
August 11, 2006 at 7:02 pm
To replace the output, you use it in the SELECT (as shown). If you wanted to replace data in the table, you would need to use it with an...
August 11, 2006 at 6:56 pm
Unfortunately, this question is ambiguous. If you mean:
"How can I remove al CRLFs from a COLUMN in my TABLE"
or
"How can I remove al CRLFs from a COLUMN in the...
August 11, 2006 at 3:01 pm
Try using REPLACE, e.g.
SELECT REPLACE(MyField, 'Once Upon A Time, ', '') As TruncatedData
FROM MyTable
August 11, 2006 at 2:51 pm
Looking over the query, I see several indications that this one "just grew", instead of being designed.
Below, I have cleaned up the query by
1) removing the...
August 11, 2006 at 2:49 pm
Also, note that the default logical filenames for database 'testing' are testing_data and testing_log, not test_data and test_log, no matter what the backup file is called. Changing your script...
June 23, 2006 at 2:20 pm
Of course, I never noticed the "Or is there some other way to do it" portion of the post 😯
June 19, 2006 at 3:29 pm
Perhaps, but the questioner specifically requested a method using DatePart. I use this when generating a YYYYMMDDHHNN strings, in preference to stripping formatting out of a CONVERTed datetime, because...
June 19, 2006 at 3:28 pm
Yes, there is. This code will do what you need:
SELECT
Cast(Datepart(yyyy, GetDate()) AS char(4)) +
Right('0' + Cast(DatePart(mm, GetDate()) AS Varchar(2)), 2) +
Right('0' + Cast(DatePart(dd, GetDate()) AS Varchar(2)), 2)
June 19, 2006 at 2:38 pm
Personally (since you said that the joins either use TENANCYID, SUPPLIERID, or EMPLOYEEID, I would add a non-unique index on each one, rather than creating a primary key on all...
June 19, 2006 at 2:25 pm
Since there is no 64 bit MSDASQL provider, you have two choices:
1) Set up a 32 bit connection for 32 bit apps. See
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=381384&SiteID=1
for more information...
June 16, 2006 at 2:51 pm
Another possibility is that the process that splits the index pages as needed has consumed all available memory at that point, and has to use the swap file for completing...
June 16, 2006 at 1:15 pm
Yes, ODBC does support JOIN statements, and VB5 can handle them. This is not the issue.
Most likely, the issue is a misunderstanding of how the OUTER JOIN would...
June 16, 2006 at 1:08 pm
Viewing 15 posts - 16 through 30 (of 152 total)