Viewing 15 posts - 1,891 through 1,905 (of 2,006 total)
SELECT name
,type_desc
,default_database_name
FROM sys.sql_logins
WHERE is_policy_checked = 0
??
June 24, 2010 at 7:25 am
Kwisatz78 (6/24/2010)
ISNULL([NU SHA Code]) ? (@[User::SHACodeFilter] == "") : (@[User::SHACodeFilter] == "") || ([NU SHA Code] == @[User::SHACodeFilter])
Ii...
June 24, 2010 at 4:46 am
I read this question differently to the posters above me, so my solution is different.
From what I read, you want to copy the entire contents of table1 into table2, then...
June 24, 2010 at 3:42 am
*NOTE* I didn't write any of this.
Function 1
CREATE FUNCTION dbo.F_table_date (@FIRST_DATE DATETIME,
...
June 23, 2010 at 5:57 am
Hey, after recently answering this thread, I found the original one here so I thought I'd share how I solved it.
I've come across this before, but basically what you have...
June 23, 2010 at 2:35 am
DECLARE @table AS TABLE(
VARCHAR(10),
[SELECT] VARCHAR(10),
[UPDATE] VARCHAR(10),
[VARCHAR] VARCHAR(10))
DECLARE @cnt INT
--25 rows
SET @cnt=25
WHILE @cnt > 0
BEGIN
...
June 22, 2010 at 7:44 am
shanila_minnu (6/22/2010)
Like this how can i convert 131401986 to 02/09/2005
Should've posted your question in a new thread. Regardless. . . something like this?
--DECLARE AND SET VARIABLE
DECLARE @number AS BIGINT
SET...
June 22, 2010 at 7:19 am
Right, modified. Not too happy with it, but it works.
--First, lets build some test data
DECLARE @table TABLE(
data VARCHAR(20));
DECLARE @cnt INT
--2,500,000 rows
SET @cnt=2500000
WHILE @cnt > 0
BEGIN
...
June 22, 2010 at 2:23 am
--First, lets build some test data
DECLARE @table TABLE(
data VARCHAR(20));
DECLARE @cnt INT
--2,500,000 rows
SET @cnt=2500000
WHILE @cnt > 0
BEGIN
SET @cnt=@cnt - 1
...
June 21, 2010 at 8:50 am
--Lets create some test data
DECLARE @table AS TABLE(
Begin_Journey_Date DATETIME,
Container_Key INT IDENTITY)
INSERT INTO @table (Begin_Journey_Date)
SELECT '2010-01-01'
UNION ALL SELECT '2010-05-01'
UNION ALL SELECT...
June 21, 2010 at 6:34 am
omd (6/21/2010)
Chris Morris-439714 (6/21/2010)
What are you trying to do here? Insert new rows into shellorganisation, or update existing rows?
Hi,
I'm trying to add a value (that value being Y) to the...
June 21, 2010 at 3:13 am
First, lets build some test data.
DECLARE @shellorganisation AS TABLE(
org_name VARCHAR(50))
INSERT INTO @shellorganisation (org_name)
SELECT 'DO NOT USE ABCDE'
UNION ALL...
June 21, 2010 at 3:01 am
DECLARE @table AS TABLE(
k1 INT,
k2 INT,
k3 VARCHAR(2))
INSERT INTO @table (k1,k2,k3)
SELECT 17, 18, 'AA'
UNION ALL...
June 18, 2010 at 5:01 am
Well, lets see shall we? 😉
USE TestingDB
DECLARE @sqlcmd AS VARCHAR(4000)
DECLARE @theErrNbr AS VARCHAR(500)
CREATE TABLE table1 (
colA VARCHAR(50),
colB VARCHAR(50))
CREATE TABLE...
June 18, 2010 at 4:08 am
NicHopper (6/17/2010)
skcadavre (6/17/2010)
As I mentioned in the previous version of this thread - I'd use SSIS, query parts of it and build a file by appending the seperate parts.
Hi,
Sorry I'd...
June 17, 2010 at 5:59 am
Viewing 15 posts - 1,891 through 1,905 (of 2,006 total)