Viewing 15 posts - 1,216 through 1,230 (of 1,315 total)
How about using extended properties instead?
This approach will use field names from extended properties, or the original field name if the property is missing:
create
table
October 14, 2004 at 8:14 am
The biggest complaint I have is that I was so busy trying to get to all the sessions I never seemed to have time for the hands-on labs. But I...
October 13, 2004 at 7:52 pm
If the remote stored procedure call is faster, how about a stored procedure that returns the DOB in an output parameter?
I have also seen that slow linked server response is...
October 13, 2004 at 7:24 pm
I remember reading somewhere that long IN lists are not efficient, they should be changed to joins. I don't remember a specific definition of "long", but you might consider it. ...
October 13, 2004 at 7:12 pm
Try sp_removedbreplication 'dbname'
This will clear replication from the specified database, without affecting other publications.
October 13, 2004 at 7:05 pm
NULLS in the IN list can have strange effects. If you're using "WHERE a IN (SELECT x FROM ...)", and [x] is a nullable field, its a good idea to include...
October 13, 2004 at 7:03 pm
Sounds like transactional replication would be a good way to go. It's fairly easy to configure, and there are lots of options for scheduling the timing of updates.
Some questions I would...
October 13, 2004 at 6:31 pm
If you're saying that this will work if you change the last line to EXEC (@sql), then why not do that? I don't know why sp_executesql can't handle it, but...
October 13, 2004 at 6:03 pm
If its a permissions problem, its almost certainly an OS permissions problem not SQL Server and having "similar privelges to SA" may not be good enough. To close security loopholes...
October 11, 2004 at 5:01 pm
The previous post can help you list the names of detached databases, but not the detached files that I think you're looking for.
It sounds like you have a large file system (SAN?)...
October 11, 2004 at 4:04 pm
I have to deal with a Teradata data warehouse and gave up on the ODBC driver long ago. I don't know if it is Microsoft or Teradata code at fault,...
October 11, 2004 at 1:36 pm
So if results over 75 chars are a problem, how can Query B (which returns a longer result) possibly work without using the workaround given in the explanation? The question says the...
October 8, 2004 at 11:46 am
The question as posed says Query B works (in spite of the missing quote). Assuming the missing quote is a misprint, are we to believe that Query B works without...
October 8, 2004 at 10:37 am
Ignore that last post, I reread the question and realize you want fixed-width numbers and the letters are extra. Go back to Chris' solution.
October 8, 2004 at 7:58 am
If your goal is to pad with zeroes to a fixed width, this works with no CASE statements:
set housenumber = right('0000' + ltrim(rtrim(housenumber)), 4)
This assumes your desired field width is...
October 8, 2004 at 7:52 am
Viewing 15 posts - 1,216 through 1,230 (of 1,315 total)