|
Hi ToddHileHoffer
Thanks for your answer.
I've already go for the work around, and i fix it, but stiil would like to know why doesnt the parameter get updated! For me it doesn't make any sense, since in several stored procedures, we need to return several variables and simultaniously a dataset. It dosn't make any sense to make sevaral calls to the server, when we can do it in a single shot! The idea of appending them to the returned dataset, is a good idea!
The biggest problem, is that i have several applications, that all use the same base system database, a few designed in VB6 and others that gonna be ported to .NET, and i'm trying to make transparent to the server application (view the same in VB6 and VB.NET).
This implies no changes to the stored procedures! So by now, i'm trying another aproach to retrieve some of the parameters, with a new sp that runs in the begining of Client Start.
Thanks for your time,
Carlos
|
|
|
|
|
hie ,
i'm developing a booking software for a hotel...... its going to have a date control and a flexgrid.The user puts in an entry... .. theres a STAYING FROM field and a STAYING TILL field.Which according to its names store the dates between which the customer will stay. Now , say theres a customer staying from the 1st of Aug. to the 10th.... if the user clicks any day BETWEEN 1st - 10th on the date control... the flex grid should show the status of the rooms.. on THAT DAY... so ..yep this customer's entry MUST SHOW up!!
So how should i compose my SQL statement!????
also i am new to this so - wats the difference between the flexgrid and the MSHflexgrid??
Thanx!
Gideon
|
|
|
|
|
giddy_guitarist wrote: So how should i compose my SQL statement!????
More detail about your data model would be useful. You have said nothing about how room information is stored, for example. Please give details of all tables where information is to appear in the output.
|
|
|
|
|
How do I delete a carriage return () in SQL Server 2000? I am importing file from a UNIX box and for some reason I have to import it into Access to remove then re-import into SQL Server.
Is there a replace statement that will take care of this?
|
|
|
|
|
SQL Server Books Online
REPLACE
Replaces all occurrences of the second given string expression in the first string expression with a third expression.
Syntax
REPLACE ( 'string_expression1' , 'string_expression2' , 'string_expression3' )
Arguments
'string_expression1'
Is the string expression to be searched. string_expression1 can be of character or binary data.
'string_expression2'
Is the string expression to try to find. string_expression2 can be of character or binary data.
'string_expression3'
Is the replacement string expression string_expression3 can be of character or binary data.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Hi,
I have 2 xml documents which contains the data, and I want to read the data from these two xml docs and copy to a table. How to do this, can any one post the syntax. I want to do this in sqlserver.
Regards,
Kalyan
|
|
|
|
|
Kalyan,
Try reading through
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=382583&SiteID=1
for how to parse through an xml document and read your elements and attributes. Where the example displays the elements/attributes to a console or listbox, you would have an sql insert statement.
Hope this helps.
tanya
|
|
|
|
|
Hi
I placed a PivotTable in my form Application.
it is a AxOWC11.AxPivotTable.
it is easy to make it display a Table with its property Wizard but i want to make it Show every kind of Table.
i want to give data to it at RunTime programmaticaly.
it has a Property axPivotTable1.DataSource. but it is of type "msdatasrc.DataSource" and i don't know how should i assign data to it.
thanks
|
|
|
|
|
I have a table called "Issue" and table called "Receive"
and both have same attributes
they are "code,curr_val,date,coin_note,no_of_items,amount,operator_id,officer_id"And also code ,curr_val, and date are superkeys.
data types are char(8),datetime,char(1)if t is a coin c,if it is a note n,money,char(8),char(8)
I'm using sql server 2000
I want to
get the difference of currency values (ex no of $10notes,$50 notes).In other words I want to get the difference of Items in the "no_of items"attribute.
I tried toget notes value and no of notes items in receive table.
>SELECT curr_val,count(*)AS Items ,SUM (amount)AS Amount_Rs FROM RECEIVE AS R WHERE coin_note='n'GrOUP BY curr_val
I tried toget notes values and no of notes items in issue table
>SELECT curr_val,count(*)AS Items ,SUM (amount)AS Amount_Rs FROM ISSUE AS I WHERE coin_note='n'GrOUP BY curr_val .
What I want is the difference betveen the items values of R and I with their currency value
please help ASAP
Thanx
Thilani
|
|
|
|
|
00thilani wrote: both have same attributes
Attributes? Do you mean "columns"?
00thilani wrote: superkeys
I am unfamiliar with that term. Do you mean "primary key"? Or perhaps "foreign key"?
Perhaps this will work:
SELECT
curr_val,
Items_Rs - Items_Is AS items_difference,
Amount_Rs - Amount_Is AS difference_amount
FROM (
SELECT curr_val, count(*) AS Items_Rs, SUM(amount) AS Amount_Rs
FROM RECEIVE
WHERE coin_note='n'
GROUP BY curr_val
) AS Received
INNER JOIN (
SELECT curr_val, count(*) AS Items_Is, SUM(amount) AS Amount_Is
FROM ISSUE
WHERE coin_note='n'
GROUP BY curr_val
) AS Issued
ON Issued.curr_val = Received.curr_val
|
|
|
|
|
I'm looking for an embeddable SQL database. So far I've found SQLite[^], and it does look promising. Are there any other software out there with the same functionality I should be aware of? I like free.
--
-= Proudly Made on Earth =-
|
|
|
|
|
Jörgen Sigvardsson wrote: Are there any other software out there with the same functionality I should be aware of
Depending on what you’re looking for there is always Firebird, There is even an article here on CP about Firebird.
Embedded Firebird: Full-Featured Embedded Database[^]
I asked the author about the differences between Firebird and SQLLite. Here is his answer.
Embedded Firebird: Question, Differences[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Thanks mate! I think I will go for SQLite, because of the ease of configuration and seemingly lower hardware footprint. (Intended users of the application doesn't need/want to know about the database)
I will however bookmark Firebird for possible use in the future. Looks like a really neat rdbms!
I think I'll use Firebird anyhow. It's truly embeddable (thus hidden), and there's a wealth of tools for it.
--
From the Makers of FuturamaLast modified: den 30 juli 2006 05:22:26 --
|
|
|
|
|
I didn't the email indicating you responded.
Jörgen Sigvardsson wrote: I think I'll use Firebird anyhow.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Woops. I had to switch back to sqlite again. Firebird doesn't support concurrent access to the same file using the embedded stuff.
But, I will keep Firebird in mind for other projects. It really is a nice product! Free and everything!
|
|
|
|
|
Jörgen Sigvardsson wrote: Firebird doesn't support concurrent access to the same file using the embedded stuff.
That is the reason why I haven't used it for anything yet.
Jörgen Sigvardsson wrote: I will keep Firebird in mind for other projects
I keep looking for a use for it, so far I haven't quite found anything yet. To many projects never enough time.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I must say though that sqlite is fairly good for most simple database needs. It lacks a lot of the good stuff, has quite a weird type system, bad collation support (i.e., must implement it yourself), and not very performant in scenarios with many concurrent writers. On the other hand, it's darn easy to use, and absolutely excellent in terms of configuration (i.e. none!)
|
|
|
|
|
Jörgen Sigvardsson wrote: It lacks a lot of the good stuff, has quite a weird type system, bad collation support (i.e., must implement it yourself), and not very performant in scenarios with many concurrent writers.
I just stumbled upon yet one more alteritave, VistaDb[^]
There are two versions, managed and un-managed. The un-managed one sounds fairly decent. It doens't appear to be free though.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Dear All,
I am Ravikumar, I need a help, i am getting a problem when fetching more then 5000 recoreds from database asp.net, its take more time to fetch... i need the Proper coding for fetching bulk data... Please Help Me... i think most of the peoples getting the same problem... so if anyone knows please help.......
Note: data comes from only one or two tables only
Regards Ravi....
-- modified at 8:54 Saturday 29th July, 2006
Ravikumar
[Coimbatore]
|
|
|
|
|
Ravi kumar G wrote: Increase the speed when fetching bulk data from database using asp.net
No wonder you're having problems. ASP.NET is for web applications. There is no database code in there. I think you want to use ADO.NET for accessing the database.
Ravi kumar G wrote: i am getting a problem when fetching more then 5000 recoreds from database ... its take more time to fetch
Naturally, the more rows you get from the database the longer it will take.
Ravi kumar G wrote: i need the Proper coding for fetching bulk data
There is no single answer to this. It all depends on what you are trying to do.
Ravi kumar G wrote: Note: data comes from only one or two tables only
Well, if there is a join involved then that could be a source of the slow down. If there is only one table involved then it could be on the filters you are applying (i.e. what's in the WHERE clause)
However, we need more information if you want help. The data model would be helpful along with the queries you are using to try and extract the data.
|
|
|
|
|
Hi
i am using .NET 1.1.
I am populating some data in DataTable using StoredProcedure.
DataTable dt = new DataTable();
DataRow dr;
DataSet ds = GetDataFromSP();
for (int k=0;k<ds.tables[0].rows.count;k++)
{
dr="dt.NewRow();
" dr[0]="int.Parse(ds.Tables[0].Rows[k]["ID"].ToString());
" dr[1]="ds.Tables[0].Rows[k]["COL1"].ToString()
" dr[2]="ds.Tables[0].Rows[k]["COL2"].ToString()
" dt.rows.add(dr);=""
}
="" binding="" to="" grid="" using="" dt.
in="" this="" datatable(dt)="" with="" same="" primary="" key="" multiple="" rows="" are="" returning="" by="" sp.
i="" want="" check="" datatable="" weather="" is="" there="" any="" dupliate="" entry.="" if="" entry="" exists="" in="" datatable,="" avoid="" the="" adding="" into="" dt.
how="" do="" this?
any="" sounds="" appriciated.="" awaiting="" for="" response.
=""
<div="" class="ForumSig">regards
GV Ramana
|
|
|
|
|
Hi, I have installed SQL2005 a couple of times now. And one time install was ONLY for reporting services. XP machine, it always keeps coming back with same error message:
Parser Error Message: The format of the file 'ReportingServicesWebServer' is invalid.
I have not changed anything from default installation.
Source Error:
Line 27: <assemblies> Line 28: <clear>
Line 29: <add assembly="ReportingServicesWebServer">
Line 30: Line 31:
Made sure that ASP.NET user had all premissions. Also re-installed ASP.NET for 1.x framework.
ANY IDEAS IS MUCH WELCOMED!! REALLY HAVING ISSUES...........
|
|
|
|
|
I think sql2005 RS works with .net 2.0?
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
I tried with 2.0 framework now and it comes back with this error message:
Failed to map the path '/Reports/App_GlobalResources/'.
I am using IIS 5.0 - ok?
thanks.
|
|
|
|
|
Are you able to run asp.net websites?
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|