Viewing 15 posts - 856 through 870 (of 13,469 total)
you are doing it correctly, but it depends on what is doing the presenting.
In Grid mode in Management Studio, CrLf are ignored(converted to spaces) FOR PRESENTATION ONLY, if you copy...
August 30, 2016 at 7:56 am
SQL_Student (8/29/2016)
Thanks I tried that, but if user has sysadmin role he still has access to the db 🙁
in general, If someone has sysadmin access, you cannot restrict access to...
August 29, 2016 at 5:34 am
when the view is actually compiled, the wild card is expanded to the list of actual column names in the compiled version of the view;that's to avoid dynamically having to...
August 28, 2016 at 5:57 am
there's a number of powershell scripts that use SMO to script out all objects as well;
you could easily set something up to call that on a regular basis.
I'll see if...
August 23, 2016 at 11:23 am
tobypaul509 (8/23/2016)
I need to purchase a tool for my...
August 23, 2016 at 9:04 am
ChrisM@Work (8/23/2016)
JasonClark (8/23/2016)
CREATE TRIGGER [TR_ProtectCriticalTables]
ON DATABASE
FOR
DROP_TABLE
AS
DECLARE @eventData XML,
@uname NVARCHAR(50),
...
August 23, 2016 at 8:54 am
GilaMonster (8/22/2016)
Try filtering on database_id, or is the db_id the id of the connection rather than the table?
doh simple and obvious;
the database_id =2 , regardless of what database context that...
August 22, 2016 at 9:52 am
whenever the difference between estimated rows and actual rows is off by a lot(order of magnitude or more,
it usually means the statistics are out of date enough to adversely affect...
August 17, 2016 at 7:15 am
it's an easy fix.
change the NOINIT TO INIT
that is append vs create/overwrite.
mwinn (8/11/2016)
August 11, 2016 at 2:04 pm
the data is the data. don't modify the data, modify the query that is exporting to csv.
if you use SSIS, you can modify it to export everything with double...
August 8, 2016 at 8:34 pm
i think you want something like this:
SELECT
'exec sp_rename ''' + QUOTENAME(Table_Name) + '.' + QUOTENAME(REPLACE(COLUMN_NAME,'''','''''')) +
''', ''' + QUOTENAME(LOWER(REPLACE(COLUMN_NAME,'''',''''''))) + ''', ' + '''COLUMN'';'
FROM
Information_Schema.[COLUMNS]
WHERE COLUMN_NAME <>...
August 8, 2016 at 9:04 am
any object name with a single quote in it needs to be escaped in a command:
exec sp_rename '[table_name].[Rec''d 2007]', '[rec''d 2007]', 'COLUMN';
August 8, 2016 at 8:47 am
TheSQLGuru (8/7/2016)
August 7, 2016 at 2:15 pm
Does the existence of duplicates actually break anything, or is it just a cleanup task because the .net application doesn't check for duplicates before adding the data? the urgency is...
August 7, 2016 at 1:28 pm
wow Line 74851
thats a huge proc to debug.
at that size, it must be doing a zillion things, that's rough.
July 30, 2016 at 6:37 am
Viewing 15 posts - 856 through 870 (of 13,469 total)