Howdy
Fairly simple question I think, I presume the answer is no it can't be
reused for 2 *SELECT* statements, but just hoping for clarification. Just
asking in the interests of trying to minimise code.
i.e. if the SqlDataAdapter uses a connection to the one database for a
select statement and I want to do a second select statement on exactly the
same database, can I reuse the SqlDataAdapter?
I ask because I want to put both 'select' results into the one dataset, just
thought I'd use the SqlDataAdapter if I could.
Thanks
Cheers
Matt 7 3002
Just do it in 1 query.
select * from x; select * from y
it'll populate 2 tables in the 1 dataset that you Fill()
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message
news:O3******** ******@tk2msftn gp13.phx.gbl... Howdy Fairly simple question I think, I presume the answer is no it can't be reused for 2 *SELECT* statements, but just hoping for clarification. Just asking in the interests of trying to minimise code.
i.e. if the SqlDataAdapter uses a connection to the one database for a select statement and I want to do a second select statement on exactly the same database, can I reuse the SqlDataAdapter?
I ask because I want to put both 'select' results into the one dataset, just thought I'd use the SqlDataAdapter if I could.
Thanks Cheers Matt
Nice, thanks :-)
Same for stored procedures with parameters though?
How about naming the tables in the dataset, or does one just refer to them
by table index number?
Cheers
Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:Oi******** *****@TK2MSFTNG P15.phx.gbl... Just do it in 1 query.
select * from x; select * from y
it'll populate 2 tables in the 1 dataset that you Fill()
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:O3******** ******@tk2msftn gp13.phx.gbl... Howdy Fairly simple question I think, I presume the answer is no it can't be reused for 2 *SELECT* statements, but just hoping for clarification. Just asking in the interests of trying to minimise code.
i.e. if the SqlDataAdapter uses a connection to the one database for a select statement and I want to do a second select statement on exactly the same database, can I reuse the SqlDataAdapter?
I ask because I want to put both 'select' results into the one dataset, just thought I'd use the SqlDataAdapter if I could.
Thanks Cheers Matt
I guess I can just build up SqlCommand objects (including adding parameters
etc.) then just comma list them inside the SqlDataAdapter statement, can I?
How about naming the tables?
Thanks
Cheers
Matt
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Nice, thanks :-) Same for stored procedures with parameters though? How about naming the tables in the dataset, or does one just refer to them by table index number? Cheers Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:Oi******** *****@TK2MSFTNG P15.phx.gbl... Just do it in 1 query.
select * from x; select * from y
it'll populate 2 tables in the 1 dataset that you Fill()
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:O3******** ******@tk2msftn gp13.phx.gbl... Howdy Fairly simple question I think, I presume the answer is no it can't be reused for 2 *SELECT* statements, but just hoping for clarification. Just asking in the interests of trying to minimise code.
i.e. if the SqlDataAdapter uses a connection to the one database for a select statement and I want to do a second select statement on exactly the same database, can I reuse the SqlDataAdapter?
I ask because I want to put both 'select' results into the one dataset, just thought I'd use the SqlDataAdapter if I could.
Thanks Cheers Matt
Not sure what you are asking about about the parameters.
If you are using an sproc (as you indicated) you'd pass in all the
parameters needed for both query to a single sproc and the queries can use
them as needed.
If you want to refer to the tables by name, simply name them after you've
done the fill based on the index (so use the index the first time, then the
name).
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message
news:u7******** ******@TK2MSFTN GP12.phx.gbl... I guess I can just build up SqlCommand objects (including adding parameters etc.) then just comma list them inside the SqlDataAdapter statement, can I? How about naming the tables? Thanks Cheers Matt
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Nice, thanks :-) Same for stored procedures with parameters though? How about naming the tables in the dataset, or does one just refer to them by table index number? Cheers Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:Oi******** *****@TK2MSFTNG P15.phx.gbl... Just do it in 1 query.
select * from x; select * from y
it'll populate 2 tables in the 1 dataset that you Fill()
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:O3******** ******@tk2msftn gp13.phx.gbl... Howdy Fairly simple question I think, I presume the answer is no it can't be reused for 2 *SELECT* statements, but just hoping for clarification. Just asking in the interests of trying to minimise code.
i.e. if the SqlDataAdapter uses a connection to the one database for a select statement and I want to do a second select statement on exactly the same database, can I reuse the SqlDataAdapter?
I ask because I want to put both 'select' results into the one dataset, just thought I'd use the SqlDataAdapter if I could.
Thanks Cheers Matt
Might be best if I give an example. I'm wondering if I can use the one
dataadapter for 2 different calls to the same sproc, and/or how I can use
less code:
// Open a connection to database
SqlConnection objConn = new
SqlConnection(C onfigurationSet tings.AppSettin gs["connJBS"]);
//create dataset to hold all table rows
DataSet objDSJobTypes = new DataSet("JobTyp es");
//Web Jobs
//Create the stored procedure command object & add parameter objects for
the stored procedure parameter
SqlCommand objCmdWebJobs = new SqlCommand("spT FL_RequestJob_J obTypes",
objConn);
objCmdWebJobs.C ommandType = CommandType.Sto redProcedure;
objCmdWebJobs.P arameters.Add(" @JobCatID", SqlDbType.Int);
objCmdWebJobs.P arameters["@JobCatID"].Value = 1;
//create our DataAdapter object and use it to fill the dataset object
SqlDataAdapter objDAWebJobs = new SqlDataAdapter( objCmdWebJobs);
objDAWebJobs.Fi ll(objDSJobType s,"WebJobs");
//bind to repeater
Repeater1.DataS ource=objDSJobT ypes.Tables["WebJobs"].DefaultView;
Repeater1.DataB ind();
//Web Projects
//Create the stored procedure command object & add parameter objects for
the stored procedure parameter
SqlCommand objCmdWebProjec ts = new SqlCommand("spT FL_RequestJob_J obTypes",
objConn);
objCmdWebProjec ts.CommandType = CommandType.Sto redProcedure;
objCmdWebProjec ts.Parameters.A dd("@JobCatID" , SqlDbType.Int);
objCmdWebProjec ts.Parameters["@JobCatID"].Value = 2;
//create our DataAdapter object and use it to fill the dataset object
SqlDataAdapter objDAWebProject s = new SqlDataAdapter( objCmdWebProjec ts);
objDAWebProject s.Fill(objDSJob Types,"WebProje cts");
//bind to repeater
Repeater2.DataS ource=objDSJobT ypes.Tables["WebProject s"].DefaultView;
Repeater2.DataT extField = "JobTypeDes c";
Repeater2.DataV alueField = "JobTypeID" ;
Repeater2.DataB ind();
Any advice greatly appreciated.
Thanks
Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:es******** ********@TK2MSF TNGP14.phx.gbl. .. Not sure what you are asking about about the parameters.
If you are using an sproc (as you indicated) you'd pass in all the parameters needed for both query to a single sproc and the queries can use them as needed.
If you want to refer to the tables by name, simply name them after you've done the fill based on the index (so use the index the first time, then the name).
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:u7******** ******@TK2MSFTN GP12.phx.gbl...I guess I can just build up SqlCommand objects (including adding parameters etc.) then just comma list them inside the SqlDataAdapter statement, can I? How about naming the tables? Thanks Cheers Matt
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Nice, thanks :-) Same for stored procedures with parameters though? How about naming the tables in the dataset, or does one just refer to them by table index number? Cheers Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:Oi******** *****@TK2MSFTNG P15.phx.gbl... Just do it in 1 query.
select * from x; select * from y
it'll populate 2 tables in the 1 dataset that you Fill()
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:O3******** ******@tk2msftn gp13.phx.gbl... > Howdy > Fairly simple question I think, I presume the answer is no it can't be > reused for 2 *SELECT* statements, but just hoping for clarification. > Just asking in the interests of trying to minimise code. > > i.e. if the SqlDataAdapter uses a connection to the one database for a > select statement and I want to do a second select statement on exactly > the same database, can I reuse the SqlDataAdapter? > > I ask because I want to put both 'select' results into the one > dataset, just thought I'd use the SqlDataAdapter if I could. > > Thanks > Cheers > Matt >
Seems like you don't have any tiers. I say that because it's pretty obvious
that your presentation logic layer (codebehind) has all the data access
layer embedded into it. Your code should look like:
Repeater1.DataS ource = WebJobs.GetJobs (1);
Repeater1.DataB ind();
Repeater2.DataS ource = WebJobs.GetJobs (2);
Repeater2.DataB ind();
Or,
DataSet ds = WebJobs.GetJobs (new int[]{1,2});
Repeater1.DataS ource = ds.tables[0];
Repeater2.DataS ource = ds.tables[1];
Repeater1.DataB ind();
Repeater2.DataB ind();
or some other variant...
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message
news:OU******** *****@TK2MSFTNG P15.phx.gbl... Might be best if I give an example. I'm wondering if I can use the one dataadapter for 2 different calls to the same sproc, and/or how I can use less code:
// Open a connection to database SqlConnection objConn = new SqlConnection(C onfigurationSet tings.AppSettin gs["connJBS"]); //create dataset to hold all table rows DataSet objDSJobTypes = new DataSet("JobTyp es");
//Web Jobs //Create the stored procedure command object & add parameter objects for the stored procedure parameter SqlCommand objCmdWebJobs = new SqlCommand("spT FL_RequestJob_J obTypes", objConn); objCmdWebJobs.C ommandType = CommandType.Sto redProcedure; objCmdWebJobs.P arameters.Add(" @JobCatID", SqlDbType.Int); objCmdWebJobs.P arameters["@JobCatID"].Value = 1; //create our DataAdapter object and use it to fill the dataset object SqlDataAdapter objDAWebJobs = new SqlDataAdapter( objCmdWebJobs); objDAWebJobs.Fi ll(objDSJobType s,"WebJobs"); //bind to repeater Repeater1.DataS ource=objDSJobT ypes.Tables["WebJobs"].DefaultView; Repeater1.DataB ind();
//Web Projects //Create the stored procedure command object & add parameter objects for the stored procedure parameter SqlCommand objCmdWebProjec ts = new SqlCommand("spT FL_RequestJob_J obTypes", objConn); objCmdWebProjec ts.CommandType = CommandType.Sto redProcedure; objCmdWebProjec ts.Parameters.A dd("@JobCatID" , SqlDbType.Int); objCmdWebProjec ts.Parameters["@JobCatID"].Value = 2; //create our DataAdapter object and use it to fill the dataset object SqlDataAdapter objDAWebProject s = new SqlDataAdapter( objCmdWebProjec ts); objDAWebProject s.Fill(objDSJob Types,"WebProje cts"); //bind to repeater Repeater2.DataS ource=objDSJobT ypes.Tables["WebProject s"].DefaultView; Repeater2.DataT extField = "JobTypeDes c"; Repeater2.DataV alueField = "JobTypeID" ; Repeater2.DataB ind();
Any advice greatly appreciated. Thanks Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:es******** ********@TK2MSF TNGP14.phx.gbl. .. Not sure what you are asking about about the parameters.
If you are using an sproc (as you indicated) you'd pass in all the parameters needed for both query to a single sproc and the queries can use them as needed.
If you want to refer to the tables by name, simply name them after you've done the fill based on the index (so use the index the first time, then the name).
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:u7******** ******@TK2MSFTN GP12.phx.gbl...I guess I can just build up SqlCommand objects (including adding parameters etc.) then just comma list them inside the SqlDataAdapter statement, can I? How about naming the tables? Thanks Cheers Matt
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Nice, thanks :-) Same for stored procedures with parameters though? How about naming the tables in the dataset, or does one just refer to them by table index number? Cheers Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:Oi******** *****@TK2MSFTNG P15.phx.gbl... > Just do it in 1 query. > > > select * from x; select * from y > > it'll populate 2 tables in the 1 dataset that you Fill() > > Karl > > -- > MY ASP.Net tutorials > http://www.openmymind.net/ - New and Improved (yes, the popup is > annoying) > http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to > come!) > > > "Matt Jensen" <re************ ***@microsoft.c om> wrote in message > news:O3******** ******@tk2msftn gp13.phx.gbl... >> Howdy >> Fairly simple question I think, I presume the answer is no it can't >> be reused for 2 *SELECT* statements, but just hoping for >> clarification. Just asking in the interests of trying to minimise >> code. >> >> i.e. if the SqlDataAdapter uses a connection to the one database for >> a select statement and I want to do a second select statement on >> exactly the same database, can I reuse the SqlDataAdapter? >> >> I ask because I want to put both 'select' results into the one >> dataset, just thought I'd use the SqlDataAdapter if I could. >> >> Thanks >> Cheers >> Matt >> > >
Nice, thanks.
Yeah I'm just starting, way in over my head, just trying to get things
working, haven't got Visual Studio either (yet)!
Thanks again
Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:O5******** ******@TK2MSFTN GP15.phx.gbl... Seems like you don't have any tiers. I say that because it's pretty obvious that your presentation logic layer (codebehind) has all the data access layer embedded into it. Your code should look like:
Repeater1.DataS ource = WebJobs.GetJobs (1); Repeater1.DataB ind();
Repeater2.DataS ource = WebJobs.GetJobs (2); Repeater2.DataB ind();
Or,
DataSet ds = WebJobs.GetJobs (new int[]{1,2}); Repeater1.DataS ource = ds.tables[0]; Repeater2.DataS ource = ds.tables[1]; Repeater1.DataB ind(); Repeater2.DataB ind();
or some other variant...
Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:OU******** *****@TK2MSFTNG P15.phx.gbl... Might be best if I give an example. I'm wondering if I can use the one dataadapter for 2 different calls to the same sproc, and/or how I can use less code:
// Open a connection to database SqlConnection objConn = new SqlConnection(C onfigurationSet tings.AppSettin gs["connJBS"]); //create dataset to hold all table rows DataSet objDSJobTypes = new DataSet("JobTyp es");
//Web Jobs //Create the stored procedure command object & add parameter objects for the stored procedure parameter SqlCommand objCmdWebJobs = new SqlCommand("spT FL_RequestJob_J obTypes", objConn); objCmdWebJobs.C ommandType = CommandType.Sto redProcedure; objCmdWebJobs.P arameters.Add(" @JobCatID", SqlDbType.Int); objCmdWebJobs.P arameters["@JobCatID"].Value = 1; //create our DataAdapter object and use it to fill the dataset object SqlDataAdapter objDAWebJobs = new SqlDataAdapter( objCmdWebJobs); objDAWebJobs.Fi ll(objDSJobType s,"WebJobs"); //bind to repeater Repeater1.DataS ource=objDSJobT ypes.Tables["WebJobs"].DefaultView; Repeater1.DataB ind();
//Web Projects //Create the stored procedure command object & add parameter objects for the stored procedure parameter SqlCommand objCmdWebProjec ts = new SqlCommand("spT FL_RequestJob_J obTypes", objConn); objCmdWebProjec ts.CommandType = CommandType.Sto redProcedure; objCmdWebProjec ts.Parameters.A dd("@JobCatID" , SqlDbType.Int); objCmdWebProjec ts.Parameters["@JobCatID"].Value = 2; //create our DataAdapter object and use it to fill the dataset object SqlDataAdapter objDAWebProject s = new SqlDataAdapter( objCmdWebProjec ts); objDAWebProject s.Fill(objDSJob Types,"WebProje cts"); //bind to repeater Repeater2.DataS ource=objDSJobT ypes.Tables["WebProject s"].DefaultView; Repeater2.DataT extField = "JobTypeDes c"; Repeater2.DataV alueField = "JobTypeID" ; Repeater2.DataB ind();
Any advice greatly appreciated. Thanks Matt
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:es******** ********@TK2MSF TNGP14.phx.gbl. .. Not sure what you are asking about about the parameters.
If you are using an sproc (as you indicated) you'd pass in all the parameters needed for both query to a single sproc and the queries can use them as needed.
If you want to refer to the tables by name, simply name them after you've done the fill based on the index (so use the index the first time, then the name).
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:u7******** ******@TK2MSFTN GP12.phx.gbl... I guess I can just build up SqlCommand objects (including adding parameter s etc.) then just comma list them inside the SqlDataAdapter statement , can I? How about naming the tables? Thanks Cheers Matt
"Matt Jensen" <re************ ***@microsoft.c om> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. > Nice, thanks :-) > Same for stored procedures with parameters though? > How about naming the tables in the dataset, or does one just refer to > them by table index number? > Cheers > Matt > > "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME > net> wrote in message news:Oi******** *****@TK2MSFTNG P15.phx.gbl... >> Just do it in 1 query. >> >> >> select * from x; select * from y >> >> it'll populate 2 tables in the 1 dataset that you Fill() >> >> Karl >> >> -- >> MY ASP.Net tutorials >> http://www.openmymind.net/ - New and Improved (yes, the popup is >> annoying) >> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more >> to come!) >> >> >> "Matt Jensen" <re************ ***@microsoft.c om> wrote in message >> news:O3******** ******@tk2msftn gp13.phx.gbl... >>> Howdy >>> Fairly simple question I think, I presume the answer is no it can't >>> be reused for 2 *SELECT* statements, but just hoping for >>> clarification. Just asking in the interests of trying to minimise >>> code. >>> >>> i.e. if the SqlDataAdapter uses a connection to the one database for >>> a select statement and I want to do a second select statement on >>> exactly the same database, can I reuse the SqlDataAdapter? >>> >>> I ask because I want to put both 'select' results into the one >>> dataset, just thought I'd use the SqlDataAdapter if I could. >>> >>> Thanks >>> Cheers >>> Matt >>> >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jayson_13 |
last post by:
Hi,
I need to implement a counter and i face problem of locking so hope
that u guys can help me.
I try to do test like this :
1st connection
SELECT * FROM nextkey WHERE tblname = 'PLCN' FOR Update;
(when i execute this statement and i guess that this will lock the
|
by: alexqa2003 |
last post by:
got a table with (class, name, exam, score) fields.
To find max(score) for exam that starts with letter 'm'
grouped by class and name,did:
select max(score) from #temp where exam like 'm%'
group by class,name
this work only for selecting max(score) from #temp.
How to select all columns and max(score) at the same time,
|
by: kalamos |
last post by:
This statement fails
update ded_temp a
set a.balance = (select sum(b.ln_amt)
from ded_temp b
where a.cust_no = b.cust_no
and a.ded_type_cd = b.ded_type_cd
and a.chk_no = b.chk_no
group by cust_no, ded_type_cd, chk_no)
|
by: TP |
last post by:
Here is my problem.
I need to display a table about which I have no information except the
table name. Using metadata I can somehow show the column names and
record values.
But my table has 1 million rows and if I do a select * then I do get
1 million rows.
I want to be able to provide page navigation as google does, page
|
by: Lauren Quantrell |
last post by:
Is there any speed/resource advantage/disadvantage in using
Select Case x
Case 1
Case 2
etc. many more cases...
End Select
VS.
| |
by: Ed L. |
last post by:
I think I'm seeing table-level lock contention in the following function
when I have many different concurrent callers, each with mutually distinct
values for $1. Is there a way to reimplement this function using
select-for-update (or equivalent) in order to get a row-level lock (and
thus less contention) while maintaining the function interface? The docs
seem to suggest so, but it's not clear how to return the SETOF queued_item
and also...
|
by: Jacob Arthur |
last post by:
How would I go about using a custom select string that is passed from a form
to the SelectCommand parameter of SqlDataSource?
I tried:
SelectCommand = "<% Request.Form("hdnSelect") %>"
but I got an error about putting <% %> tags in a literal. I tried taking
out the quotes (the " ") and it didn't do any good. I'm trying to use the
built in ASP.NET 2.0 DataList control, but I haven't come up with anything.
|
by: microsoft.public.dotnet.languages.vb |
last post by:
Hi All,
I wanted to know whether this is possible to use multiple variables to
use in the select case statement such as follows:
select case dWarrExpDateMonth, dRetailDateMonth
case "01" : dWarrExpDateMonth="Jan" : dRetailDateMonth="Jan"
case "02" : dWarrExpDateMonth="Feb" : dRetailDateMonth="Feb"
End Select
|
by: Besturk.Net Admin |
last post by:
Hi..
I am using python with postgresql.
And i have a query :
aia.execute("SELECT id, w from list")
links=aia.fetchall()
print links
and result
(2 million result)
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |