Viewing 15 posts - 676 through 690 (of 1,170 total)
Nice script! Thank you.
I changed it a bit (for my purposes) to express the sizes in MBs since it's easier for reading when run on big databases.
SELECT
...
Igor Micev
February 3, 2014 at 7:05 am
Lenny Kramer (2/3/2014)
ALTER TABLE only allows columns to be added that can contain nulls, or have a DEFAULT definition specified, or the column being...
Igor Micev
February 3, 2014 at 6:52 am
What about like this:
BEGIN TRY
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TestTable]') AND type in (N'U'))
raiserror('There is already an object named ''TestTable'' in the database.',5,1)
ELSE...
Igor Micev
February 3, 2014 at 6:42 am
Hi,
This will fail since I already have rows in student table.
Why should it fail? It seems you have data that could not be referenced, but not because of the fact...
Igor Micev
February 3, 2014 at 6:31 am
Hi,
In your first query (for Oracle) you're using TO_DATE() function to convert the date data type RECEIVEDATE to DATE. For MSSQL you're not doing the same. Try using a respective...
Igor Micev
February 2, 2014 at 3:50 pm
Than it should be simple.
You can schedule your job on daily basis, and in the code for calling the SP you can use a little code
if day(getdate()) in (1,5,8,12,18,24,26,30)
...
Igor Micev
January 31, 2014 at 2:00 am
Than all users must have some privileges.
You can modify some conditions in the code if you want to find something else.
Regards,
IgorMi
Igor Micev
January 31, 2014 at 1:56 am
You can not do it with one schedule.
A work around for that may depend on what is your job scheduled to execute: t-sql, ssis package, ...?
Igor Micev
January 30, 2014 at 7:50 am
Subrata Bauri (1/30/2014)
Dear All,How to query in SQL to retrieve all the disabled Windows Users which are available as records(only) in the SQL Server ?
Thank you.
Hi, try with the following...
Igor Micev
January 30, 2014 at 7:43 am
patricklambin (1/30/2014)
Thanks for your reply which is confirming what I was thinking especially about LOB and maybe FILESTREAM ( and what about the FileTables ? )
Maybe the...
Igor Micev
January 30, 2014 at 6:21 am
Jeff Moden (1/24/2014)
IgorMi (1/22/2014)
2) No, you should not shrink. They are...
Igor Micev
January 25, 2014 at 3:46 am
L' Eomot Inversé (1/24/2014)
IgorMi (1/22/2014)
bandarimohan 57273 (1/21/2014)
ACID property can be allowed for TempDB ?I don't know where is that property, but D-Durability cannot be guarantied for tempdb.
Regards,
IgorMi
I don't see why...
Igor Micev
January 25, 2014 at 3:33 am
Grant Fritchey (1/24/2014)
ChrisM@Work (1/24/2014)
I tend not to. If I'm about to spend a few minutes reading and understanding a chunk of code, reformatting it easily becomes...
Igor Micev
January 24, 2014 at 6:08 am
If you pass multiple TrainerID-s delimited, than you can parse them in the stored procedure and execute this insert
insert into dbo.tbl_Workshop
values(@Title,@Topic,@Date,@Duration,@CreatedDate,@UpdatedDate)
as many times as the trainer ids there are...
Igor Micev
January 24, 2014 at 5:10 am
ChrisM@Work (1/24/2014)
-- Formatted
DECLARE @tempS AS nvarchar(150)
DECLARE @tempW AS nvarchar(50)
DECLARE @tempQ As nvarchar(5)
UPDATE dbo.EXPORTMAIN SET
@tempS = SKU1,
@tempW = WHSELOC1,
@tempQ = QTY1,
SKU1 = Case...
Igor Micev
January 24, 2014 at 3:21 am
Viewing 15 posts - 676 through 690 (of 1,170 total)