Viewing 15 posts - 4,411 through 4,425 (of 6,400 total)
Looks like you need to do some research on JOINS for starters.
July 4, 2012 at 7:07 am
whats the full error message from eventvwr?
17058 is usually cannot open a file, usually down to permission errors.
July 4, 2012 at 6:31 am
The fist link I detailed constains the information on this, but from a command prompt you want to run something like the below
net start MSSQL$INSTANCENAME -m"SQLCMD"
or
net start MSSQL$INSTANCENAME -m"Microsoft SQL...
July 4, 2012 at 6:17 am
this will get you your requirements
declare @tbl table (id int, nom varchar(20) ,actif bit )
INSERT @tbl values(1, 'un', 1)
INSERT @tbl values(2, 'deux', 0)
INSERT @tbl values(3, 'trois', 1)
INSERT @tbl values(3, 'quatre',...
July 4, 2012 at 6:09 am
I get what your trying to do, I just dont know how you are ending up with the replaced_replaced_replaced_dbname.
Something must be changing the search for and replace with parameters, why?
July 4, 2012 at 5:53 am
Pause all the passive nodes so SQL cannot fail over.
Then start SQL using -m and give it an application which you will connect with (Management studio or SQLCMD), as it...
July 4, 2012 at 5:51 am
I'm unsure on how it removed them from the server as it shouldn't and I just tested a simple transfer of 1 SQL and 1 Windows login no problem.
For transfering...
July 4, 2012 at 5:36 am
Only if you set the @SearchFor to a different value.
Can you post your full query and your expected outcomes.
July 4, 2012 at 5:20 am
As long as you can login to the Windows console session as an account which is in the Windows Administrators group you will be able to login to SQL.
It effectly...
July 4, 2012 at 5:18 am
Ensure you are an administrator of the Windows server where SQL is installed.
Start SQL in single user mode using the startup flag -m
Then you will be able to login to...
July 4, 2012 at 5:14 am
REPLACE will work with underscores
DECLARE @OrigString VARCHAR(100)
DECLARE @SearchFor VARCHAR(100)
DECLARE @ReplaceWith VARCHAR(100)
SET @SearchFor ='DBName'
SET @ReplaceWith = 'Replaced_DBName'
SET @OrigString = 'Newdb.[DBName].dbo.TableName'
SET @OrigString = REPLACE(@OrigString, @SearchFor, @ReplaceWith)
SELECT @OrigString
July 4, 2012 at 5:09 am
Sorry, think you got confused with what Gullimeel was asking.
Please detail the output of the sys.dm_db_index_physical_stats query
Also from your original select statement, how many rows did it return?
Also from my...
July 4, 2012 at 5:04 am
Something like this?
DECLARE @OrigString VARCHAR(100)
DECLARE @SearchFor VARCHAR(100)
DECLARE @ReplaceWith VARCHAR(100)
SET @SearchFor ='DBName'
SET @ReplaceWith = 'ReplacedDBName'
SET @OrigString = 'Newdb.[DBName].dbo.TableName'
SET @OrigString = REPLACE(@OrigString, @SearchFor, @ReplaceWith)
SELECT @OrigString
July 4, 2012 at 5:00 am
Viewing 15 posts - 4,411 through 4,425 (of 6,400 total)