Viewing 15 posts - 871 through 885 (of 1,156 total)
You do not need to use substring if you are grabbing the first 4 chars.
You query should look like this:
update table
set number = replace (number,6666,left(number,4))
January 10, 2008 at 10:26 am
I thought you wanted to replace the 666 with the first 3 digits??? You have your query backwards!! In your query you are replacing the first 4...
January 10, 2008 at 10:24 am
select convert(varchar,getdate(),101)
January 10, 2008 at 8:26 am
Except, Where not exists, and Not In all use the same execution plan. The difference here is going to be syntax.
Here is an blog about some...
January 10, 2008 at 8:08 am
Favorite temp table name... #MyHead
I guess its not just me!! 😉
January 9, 2008 at 7:55 pm
I am not entirely sure I follow what you are after. This article will provide you some help tips on how to post your problem correctly, so members are...
January 9, 2008 at 6:18 pm
This is quoted from the BOL entry about EXCEPT
EXCEPT
Returns any distinct values from the query to the left of the EXCEPT operand that are not also returned from the right...
January 9, 2008 at 5:58 pm
add the -n swich to remove numbering.
January 9, 2008 at 5:38 pm
1) In the 'like' comparison - changed '!%' to '%!%%'
2) In the CHARINDEX - changed CHARINDEX([field16],'%') to CHARINDEX('%', [field16])
3) You had an extra parenthesis ')' in the last Case statement...
January 9, 2008 at 9:10 am
You will have to use either OSQL or SQLCMD, ISQL is not the correct command liine utility.
SQLCMD -i "C:\TEST.SQL" -S SERVERNAME -d DATABASENAME -U USERNAME -P PASSWORD...
January 8, 2008 at 3:48 pm
GSquared,
These IIF look a little more nested than you displayed, but my ACCESS is pretty rusty. I thought the query should look something like this.
select
case when [DBA_cs_project].[creator_id] Like...
January 8, 2008 at 3:35 pm
I have done a little research and it seems that if any constant is put into count the SQL server database engine will automatically interpret this as count(*). The...
January 8, 2008 at 1:16 pm
Collin has a very good point here. The only sure fire way to determine if a backup is "good" is to restore; however, you can also add some additional...
January 8, 2008 at 12:46 pm
Do you have to do it remotely or can you setup a .bat file on the SQL Express server to execute sqlcmd to backup the database? You can then...
January 8, 2008 at 12:36 pm
Viewing 15 posts - 871 through 885 (of 1,156 total)