Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, May 2, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - ADO General
Forum to discuss ADO specific questions for use with SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ADO General | New ThreadView:  Search:  
 Author  Thread: How to generate ID for a table without using "SLX_DBIDs" Sp
CGK
Posts: 34
 
How to generate ID for a table without using "SLX_DBIDs" SpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 07 5:49 AM
Hi All!

Can anyone suggest me how I can generate IDs for a table to insert records into it without using SLX_DBIDs.

I'm particular about not using SLX_DBIDs because I'm using an SQLOLEDB.1 and not SLX OleDB.

TIA.
CGK.
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: How to generate ID for a table without using "SLX_DBIDs" SpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 07 4:53 PM
Before that , do you want to tell us why you *dont* want to use it?

also you cannot use slx_dbids with sqloledb.1..
[Reply][Quote]
CGK
Posts: 34
 
Re: How to generate ID for a table without using "SLX_DBIDs" SpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 07 11:36 PM
Hi Nandu!

I'm very new to dotnet and am using it to connect to a saleslogix server!
I'm not sure if you can use slx_dbids with sqloledb.1. All I know is... I tried using it and it didnt work!


[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: How to generate ID for a table without using "SLX_DBIDs" SpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 07 12:31 AM
Take a look at this article on the site, it is a good guide to learn how to generate IDs for SalesLogix.

It also contains an example of using the OleDb with SLX. Just remember that you have to at least have the SLX OLEDB provider installed on the machine where this code is being executed (your dev box), and also, you can use a .UDL file to create the connection to SLX, then open it on notepad and extract the connection string.

C# Example from the Article:

public string NewID(string table)
{
using (OleDbConnection conn = new OleDbConnection(SlxConnectionString))
{
conn.Open();
using (OleDbCommand cmd = new OleDbCommand(string.Format("slx_dbids('{0}', 1)", table), conn))
{
return cmd.ExecuteScalar().ToString();
}
}
}
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: How to generate ID for a table without using "SLX_DBIDs" SpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Sep 07 8:21 AM
Well , i have heard a lotta ppl sayinig dotnet and saleslogix...

For accessing a slx db, nothing has changed in terms of how to access it.sure we can do this thru vbscript, vb , and all dot net langs.But all of those are just langs which HAS to use the SLXOLEDB provider to get in.Using the provider is the key ;nothing else is....
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/2/2024 1:10:49 PM