473,396 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL Server Express 2005 @@SPID

Hi,
which is the syntax for a stored procedure that return to me the exact
@@SPID of my current connection?

I'm using ADO in VB6 and i want to obtain @@SPID

Thank u

Rob
Nov 22 '07 #1
1 3101
Yoda (rm****@teaminf.com) writes:
which is the syntax for a stored procedure that return to me the exact
@@SPID of my current connection?

I'm using ADO in VB6 and i want to obtain @@SPID
CREATE PROCEDURE get_spid @spid OUTPUT AS
SELECT @spid = @@spid
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Nov 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Aspinall | last post by:
Hi I have an application which runs on a desktop. I want to synchronise the DB with a PDA app, which also uses SQL Server 2005 (mobile and express). How can I connect to the Desktop DB, from...
3
by: johnb41 | last post by:
Can anyone help me? I need to create a SQL Server Express 2005 database programmatically in my app. I have searched the web and I found nothing. Can anyone help? Are there classes in the new...
1
by: jimmy84c | last post by:
Hi all, After working for weeks on a project in VB.Net, I decided to deploy a test version on a user's computer. The user's XP SP2 computer has sql server xpress 2005 installed, and my VB.net...
4
by: steve | last post by:
Hi All I have a VB.net 2005 application which uses Sql server express 2005 When I read or write data to sql server I always close the connection immediately after finishing using......
2
by: Rob Pollard | last post by:
Hi All, I'm pretty new to using these technologies so bear with me. I have created a c# app which communicates with sql-server express 2005. When I run an insert on a table via the SqlCommand...
0
by: Brad Brening | last post by:
I'm developing a quick site in VWD 2005 and SQL Server Express 2005. I'm using custom forms authentication where my user accounts are stored in a local MDF file attached to the project. I note...
10
by: =?Utf-8?B?UHVuaXQgS2F1cg==?= | last post by:
Hi, I am developing a windows application in VS.NET 2005. The application is database driven and I need to deploy it on a client's pc. How should I go about developing such an application. I...
0
by: mcfly1204 | last post by:
I am trying to find the installer for SQL Server 2005 Express with Advanced Service, version 9.0.1399. The only only installer I can find includes SP1. Any thoughts?
4
by: Kerrin Banner | last post by:
Hello Hopefully a really simple question. We have just finsihed a SQL 2005 database and vb.net app. We have been using SQL server 2005 Management Studio during design. We now want to copy the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.