Viewing 15 posts - 47,236 through 47,250 (of 49,571 total)
You defined the parameter as VARCHAR without specifying a length. If no length is specified, it it 1 character long, essentially VARCHAR(1)
So at the point of the if, @inputval =...
March 5, 2008 at 2:37 pm
Looks like a severity 20 error, so there should be more information in the SQL error log and/or the windows event log.
Check them, see if there's anything useful.
March 5, 2008 at 2:31 pm
Hehe.
Recently an architect that I was working with put my title down as Database Overlord in a design doc he was working on. That was 3 weeks ago. We're still...
March 5, 2008 at 2:23 pm
Interesting.
I seem to recall a presentation where one of the devs of the execution engine spoke about collapsing functions (I don't remember the technical name). Maybe ISNULL is one of...
March 5, 2008 at 1:59 pm
There are a number of possible causes.
You could be hitting hardware bottlenecks. You could have poor table or index design, you could have poorly written queries. You could have all...
March 5, 2008 at 1:58 pm
Probably depends whether the data for the varchar(max) is in the row, or in separate (blob) pages. If the data's out of row then you'll be incurring extra reads for...
March 5, 2008 at 12:27 pm
Something else to check. Are either the mdf file or ldf file marked as readonly? (Check the file properties)
March 5, 2008 at 3:58 am
No, because using functions on the column in the where clause means that SQL cannot use an index seek to locate the rows, and it will have to scan.
OR or...
March 5, 2008 at 1:55 am
Oh my. That's unexpected and very unfortunate
D&D's still a big part of my life. Got a game this weekend that I'm running.
March 5, 2008 at 1:01 am
Rohit Chitre (3/4/2008)
If I start taking log back up every hour. then will it be advisable to truncate & shrink only the log file.
No. It is never advisable to truncate...
March 5, 2008 at 12:22 am
Set the database into restricted mode. Means that only sysadmn and db_owner can connect to it.
March 4, 2008 at 11:49 pm
Do you have a backup of MSDB?
If you recreate the database, you'll loose all your jobs, DTS packages and a few other things. They're all stored in MSDB.
If you don't...
March 4, 2008 at 11:46 pm
Varchar also only stores the characters you enter. A varchar(1000) with 15 characters in will take up 17 bytes in the row (15 for the characters, plus 2 to store...
March 4, 2008 at 11:44 pm
Rohit Chitre (3/4/2008)
Thanks everyone for valuable information.I am running following statements to truncate the log and database size
Dump Tran with no_log
DBCC Shrinkdatabse (' ')
Ouch.
The first of those ensures...
March 4, 2008 at 11:31 pm
If the NC was wider, I'd agree with you. As it it, unless Column1 is highly selective, or queries are done that only filter on and retrieve Column1, then it's...
March 4, 2008 at 11:22 pm
Viewing 15 posts - 47,236 through 47,250 (of 49,571 total)