Viewing 15 posts - 1 through 15 (of 37 total)
If your are NOT using a sysadmin login, wich permissions do you need to run DBCC showfilestats?
February 9, 2012 at 7:16 am
I tried and it worked. I started first the backup an then started te shrink operation and all went well.
January 25, 2012 at 7:09 am
UMG Developer (1/5/2011)
Alberto IT (1/5/2011)
To complicated. Yo can solve it using CHARINDEX:
As long as you don't mind incorrect results:
DECLARE @inputValue NVARCHAR(20)
DECLARE @student TABLE
(Id INT PRIMARY KEY IDENTITY(1,1),
StudentName NVARCHAR(50),
StudentResult INT)
INSERT INTO...
January 5, 2011 at 10:41 am
To complicated. Yo can solve it using CHARINDEX:
DECLARE @inputValue NVARCHAR(20)
DECLARE @student TABLE
(Id INT PRIMARY KEY IDENTITY(1,1),
StudentName NVARCHAR(50),
StudentResult INT)
INSERT INTO @student
VALUES( 'Hardy', 100), ('Rocky', 98), ('Panky', 99)
--Select 1
SET @inputValue = 'Hardy'
SELECT...
January 5, 2011 at 6:16 am
Please explain me about the variable $location. It is used in the line $webclient.UploadFile($uri, $location) to send the file to a FTP server, but $location is never initialized nor populated.
Alberto
------
January 5, 2011 at 5:46 am
My wife should read this! about the black and white thing and getting more tolerant. Shame she doesn't read English (I'm in Peru). But I will make time to translate...
September 28, 2009 at 2:26 pm
I'm Triyng to autogrowth a log file. A created a DB witn one table with a couple of char 8000 fields, inserted many, many rows. But the Registry never gets...
July 16, 2009 at 3:48 pm
To use TVP in SQL 2008 you first need to create a UDT based on the data type Table. I'm not sure if what youre trying to do is possible.
Here's...
June 12, 2009 at 2:01 pm
I ended up with a mixed solution. I find it simple compared with those you proposed:
Declare @Path varchar(256)
declare @myquery varchar(1000)
Set @Path = 'C:\Archivos de programa\Microsoft SQL Server\MSSQL.1\MSSQL\Data\'
set @myquery = 'dir...
June 12, 2009 at 1:26 pm
well, this time is a poll. Please tell me if I'm doin'g wrong
June 12, 2009 at 12:29 pm
You have two servers, local and remote. The remote server (or instance) must be a linked server:
From the current server write this:
SELECT a.Filed1, b.Field2
FROM LocalTable a
JOIN LinkedServer.OneDB.dbo.RemoteTable b
...
June 12, 2009 at 12:25 pm
ah! I forgot to say that the scripts work for SQL 2005/2008
June 11, 2009 at 4:28 pm
Here you have a couple of scripts that show you where are the objects:
TABLES:
SELECT
t.name AS [Table],
s.name AS [Schema],
ds.name AS [FileGroup]
FROM
sys.tables AS t
INNER JOIN sys.schemas AS s ON s.schema_id = t.schema_id
INNER...
June 11, 2009 at 4:27 pm
Great trick that one with OPENROWSET. Very useful. I used to crete a temp table an then populated it with the result of a the system sp, but with this...
June 11, 2009 at 2:43 pm
This is the one, promise. Sorry for the inconvenience
SET XACT_ABORT ON
BEGIN TRY
BEGIN TRAN
CREATE CLUSTERED INDEX ix_TableA_Transfer ON tableA (id) ON [OtherFileGroup]
COMMIT
END TRY
BEGIN CATCH
ROLLBACK
END CATCH
June 11, 2009 at 1:39 pm
Viewing 15 posts - 1 through 15 (of 37 total)