Viewing 15 posts - 5,101 through 5,115 (of 26,490 total)
Taking Eirikur's set up:
SET NOCOUNT ON;
WITH SAMPLE_DATA(IP_ADDR) AS
( SELECT * FROM (VALUES
('132.135.3.100, fe90::bu54:e9z5:61a9:5003')
,('132.235.219.113, fe80::28d9:l69a:5bbd:gr2f')
) AS X(IP_ADDR)
)
SELECT
IP,
MAC
FROM
...
May 29, 2015 at 12:32 pm
Eirikur Eiriksson (5/29/2015)
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA(IP_ADDR) AS
( SELECT * FROM (VALUES
('132.135.3.100, fe90::bu54:e9z5:61a9:5003')
,('132.235.219.113, fe80::28d9:l69a:5bbd:gr2f')
) AS X(IP_ADDR)
)
SELECT
...
May 29, 2015 at 12:21 pm
Does the string only have 'IPAddress, MACAddress'?
May 29, 2015 at 12:15 pm
TJT (5/29/2015)
Correct, the IP Address is always first and ends with a comma
select left(@TestStr,patindex('%,%',@TestStr) - 1);
I can't post the declare of the @TestStr with the ip and mac address as...
May 29, 2015 at 11:55 am
TJT (5/29/2015)
I am trying to grab the IP address from a field and having trouble getting some IP addresses. The query is below
SELECT ...
May 29, 2015 at 11:47 am
GG_BI_GG (5/29/2015)
Cust_nr between 9950001 t/m 9959999 then 2, Cust_nr between 9980001 t/m 9989999 then 3 and others 1
I like it to do it on a select...
May 29, 2015 at 11:44 am
You have two unnecessary BEGIN statements and no END statements. You can remove the two BEGINs.
May 29, 2015 at 11:40 am
I can understand why you can't make this a view, but what error are you getting when trying to create a stored procedure, and please post the code you tried...
May 29, 2015 at 10:53 am
ramana3327 (5/28/2015)
Incase, if I use the correct table name TableB (If I didn't use any Xact_abort on and there are no syntax errors)
In case of any error occur, Is...
May 28, 2015 at 4:08 pm
sharonsql2013 (5/28/2015)
Because we are in the middle of the week.. Hope I am not...
May 28, 2015 at 4:00 pm
rocho09 (5/28/2015)
CREATE NONCLUSTERED...
May 28, 2015 at 3:58 pm
sharonsql2013 (5/28/2015)
52 weeks from current week. If its the middle of the week then 52 weeks from past week So, The starting date will be based of current date
Okay, what...
May 28, 2015 at 3:54 pm
sharonsql2013 (5/28/2015)
However , The query I have does not filter for full weeks and I get...
May 28, 2015 at 3:44 pm
Letron Brantley (5/28/2015)
Actually the real table is not. That's why we are doing the rename. Also both tables are partitioned with the...
May 28, 2015 at 1:51 pm
Letron Brantley (5/28/2015)
Yes I've thought about ALTER SWITCH but if I'm not mistaken, one of the requirements for ALTER SWITCH is that the target table has to be empty.
Based...
May 28, 2015 at 1:46 pm
Viewing 15 posts - 5,101 through 5,115 (of 26,490 total)