Viewing 15 posts - 9,031 through 9,045 (of 13,469 total)
lak's suggestion still stands; if you bracket the server name you'd fix the issue:
select quotename(@@SERVERNAME)
--or
select quotename(ColumnName) from SomeTable
you are probably building the bcp string, right? very simple to get the...
July 21, 2010 at 5:33 am
that's the point...it's a business decision...some examples:
1. Data was entered in all capital letters(SMITH) biz rule says it should be proper cased.
2. duplicate data exists for the same...
July 20, 2010 at 8:52 am
yeah, there's no built in way to determine what data is "clean" or "dirty", it's a decision based on analysis...and one man's definition of dirty is not the same as...
July 20, 2010 at 8:26 am
I'm assuming the variable @VsebZapis is the string you are writing?
are you adding a CrLf to the end of it, so each record is on a single line in the...
July 20, 2010 at 8:22 am
it's in the registry, and there's one for each version of SSMS, it looks like:
for 2008, for exmaple it's here:
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell
that's where you would change everything to default to...
July 20, 2010 at 8:14 am
i don't think your @r variable will ever be null.... count would return zero if nothing was found;
SELECT @r = COUNT(*) FROM SchoolStudents WHERE roll = @roll
--will return...
July 20, 2010 at 5:44 am
jyoti2705 (7/19/2010)
July 19, 2010 at 12:16 pm
AFAIK, images that will appear in an email must be an attachment. because html is interpreted, you can't just find and replace to ge tthe image in there.
your choices...
July 19, 2010 at 11:20 am
James i'm guessing that you'd need to post the code for the procedure sp_sendmailsimmediately
clearly it's using CDO instead of the newer msdb.dbo.sp_send_dbmail, and a required parameter is missing.
July 19, 2010 at 6:46 am
take a look at this thread about logon triggers...
you could make a trigger like the example that refuses a connection if they are using the specific SUSER_NAME() of the account...
July 15, 2010 at 12:31 pm
we have a handful of tables that require what you are asking;
what we did was add an additional column to the table, where the default value is the location/server/identifier for...
July 15, 2010 at 12:25 pm
jvanderberg (7/15/2010)
July 15, 2010 at 12:13 pm
here's some code that will change every non-dbo schema-ed table to be in the dbo schema again. you'd need to tweak it to cover procs/views/functions, if that is an issue...
July 15, 2010 at 12:11 pm
i think you'll have to script out all the functions,views and procedures to a file, then do a find and replace...
P1. -->[P2].
[P1] -->[P2]
then replace each CREATE PROCEDURE/CREATE FUNCTION/CREATE VIEW with...
July 15, 2010 at 11:43 am
Auto update stats only gets triggered when 20% of the rows in a table are modified...on small tables, that's fine, but on a big table, say a million rows,...
July 15, 2010 at 11:32 am
Viewing 15 posts - 9,031 through 9,045 (of 13,469 total)