Viewing 15 posts - 466 through 480 (of 5,393 total)
It's a number, so they're the same thing. Depending on where the IP addresses come from, they can be in any form.
-- Gianluca Sartori
June 1, 2015 at 8:12 am
Here is some code that I hope will help you:
IF OBJECT_ID('IPAddressToInteger') IS NOT NULL
DROP FUNCTION IPAddressToInteger;
GO
-- Deterministic version of Denis Gobo's function
-- Parsename is not deterministic
CREATE FUNCTION [dbo].IPAddressToInteger( @IPV4Address...
-- Gianluca Sartori
June 1, 2015 at 8:07 am
Be careful: won't work for addresses represented with leading zeros, such as 128.134.002.101
-- Gianluca Sartori
June 1, 2015 at 8:02 am
IPV4 addresses are represented as strings in the dotted format, but they're integers (bigints precisely).
You can easily convert to bigint using the function provided by Denis Gobo here: http://sqlblog.com/blogs/denis_gobo/archive/2008/10/05/9266.aspx
CREATE FUNCTION...
-- Gianluca Sartori
June 1, 2015 at 7:36 am
This should be everything you need:
SELECT source_IP = dec.client_net_address,
source_Machine = des.host_name,
Database_Name = DB_NAME(des.database_id),
Connection_Time = des.login_time
FROM sys.dm_exec_sessions des
INNER JOIN sys.dm_exec_connections dec
ON dec.session_id = des.session_id
-- Gianluca Sartori
June 1, 2015 at 6:33 am
Products such as RedGate SQL Search[/url] and Apex SQL Search seem to be the most reasonable way to skin this cat.
If you have to do it with T-SQL, a...
-- Gianluca Sartori
June 1, 2015 at 3:18 am
Duplicate post. Replies here please: http://www.sqlservercentral.com/Forums/FindPost1690345.aspx
-- Gianluca Sartori
June 1, 2015 at 2:25 am
Without seeing the code or the underlying database schema, the only suggestion I can come up with is: don't allow duplicates with a meaningful UNIQUE constraint.
It would be really...
-- Gianluca Sartori
June 1, 2015 at 2:24 am
You have to figure out what's wrong in the upgrade script and fix it. There's no other way around it. Your ERRORLOG should show you what's wrong.
-- Gianluca Sartori
May 29, 2015 at 9:21 am
dwain.c (5/28/2015)
But when I...
-- Gianluca Sartori
May 29, 2015 at 2:34 am
Looks like an interview question.
If "recreate table" means that all the data is reinserted in the table, the possible answers are:
ALTER TABLE SomeTable REBUILD; -- Rebuilds a heap...
-- Gianluca Sartori
May 27, 2015 at 1:26 am
Eric M Russell (5/26/2015)
You can also reference scalar user defined functions within check constraints.
You can, but it's a recipe for disaster with large data modifications. A trigger is much more...
-- Gianluca Sartori
May 26, 2015 at 11:27 am
GilaMonster (5/26/2015)
Steve Jones - SSC Editor (5/25/2015)
He has been bannedWas this you then, restoring deleted posts? http://www.sqlservercentral.com/Forums/FindPost1688705.aspx
I suppose he's attempting a comeback and being banned again.
-- Gianluca Sartori
May 26, 2015 at 8:35 am
Perry, thanks for the information. I was not aware of this issue.
I'm under the impression that the OP just wants to know if he can use the evaluation setup kit...
-- Gianluca Sartori
May 26, 2015 at 6:41 am
Confirmed. During the setup, you can enter the key you purchased instead of selecting "evaluation".
-- Gianluca Sartori
May 26, 2015 at 3:58 am
Viewing 15 posts - 466 through 480 (of 5,393 total)