Select
Top 25
Count(id) as HowManyFromCountry,ip,
(
SELECT CountryCode FROM [IP2COUNTRY].[dbo].[ip_networks]
WHERE IpFrom = ( SELECT MAX(IpFrom) FROM [IP2COUNTRY].[dbo].[ip_networks]
WHERE IpFrom <= (select [IP2COUNTRY].dbo.ip2int(uploads.ip))
) AND IpTo >= (select [IP2COUNTRY].dbo.ip2int(upl...
more >>
When I do an insert that automatically generates a new id in the
identity column, how can I immediately get back that id so I can put
it into a string in c#?
here is the table:
id | user_id | name | etc.....
123 4519 trint atsidi
124 7821 jane doe
125 ...
more >>
I'm designing an application around the provider pattern
(http://msdn2.microsoft.com/en-us/library/aa478948.aspx) and I'm trying
to plan ahead for multiple applications. As I'm sure many of you are
aware, the schema defines a table for Users, which has an ApplicationId
column for mapping th...
more >>
Hi,
I have a table setup that gives some problems (on 2005);
create table A (
id int identity(1,1) not null,
type int not null,
text varchar(10)
)
alter table A add constraint A_PK primary key ( id, type )
alter table A add constraint A_C non unique ( id )
create table B (
id...
more >>
Hi all,
I have a string expresion @formula ="(5+3)*5"
How to calculate this string like a formula. Result must be 40
Thank's...
more >>