Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Thursday, March 29, 2012

Embedding/Distributing SQL Express With A VB Program

If I want to distribute a VB database programm using MSDE I have to install MSDE seperately which can be a challenge for some users. It there a way I could deploy SQL Express with my VB program so the user would not have to do a seperate install? Is this possible in Visual Studio 2003 or do I need 2005?

Thanks

Have a look at the following MSDN Article, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/EmSQLExCustApp.asp

sql

Monday, March 19, 2012

email Hyperlink

Hi! I have a report that is showing an email account.
I wanted to let the user click on this field, so, if he/she has an
email program set up, they can email directly.
Do you know how can I do it?
Thanks!!Yeah. I think you'll want to use an "action".
Ryan
Smelly wrote:
> Hi! I have a report that is showing an email account.
> I wanted to let the user click on this field, so, if he/she has an
> email program set up, they can email directly.
> Do you know how can I do it?
> Thanks!!|||Properties/Navigation/Jump to URL:
mailto:name@.company.com
"Smelly" wrote:
> Hi! I have a report that is showing an email account.
> I wanted to let the user click on this field, so, if he/she has an
> email program set up, they can email directly.
> Do you know how can I do it?
> Thanks!!
>

Wednesday, March 7, 2012

EM does not install

I have a strange SQL Standart installation on Win2k
server, sp4: I selected the server components, but the EM
is not available in the program menu. I have already
installed the same SQL on the previous machine and the
installation was OK. What I'm missing? Do I need to
reinstall SQl server? Can I do this without uninstall the
existing instance?
ThanksTry reinstalling "client tools only"
--
-Vishal
MJ <mschwenger@.cca-lv.com> wrote in message
news:2f6b01c379df$9b8b6e60$a601280a@.phx.gbl...
> I have a strange SQL Standart installation on Win2k
> server, sp4: I selected the server components, but the EM
> is not available in the program menu. I have already
> installed the same SQL on the previous machine and the
> installation was OK. What I'm missing? Do I need to
> reinstall SQl server? Can I do this without uninstall the
> existing instance?
> Thanks

Sunday, February 19, 2012

efficient way to put multiple tables in one xml output

hi guys,

i'm looking for alternatives on how to put multiple tables in one xml output.

i have this .net program that has been passed to me that currently loops through some tables and calls an sp that returns a query that has a FOR XML AUTO, ELEMENTS on it, then appends <Extract> ... </Extract> as a root node for all the extracted tables then saves it as an xml file. i'm trying to optimize it by limiting the number reads to the db server, so one option is for me do the loop inside the sp.

is this efficient? any snippet? by the way, i'm using sql2k

thanks guys.

/rh4m1ll3

hi,

Bit confused with the requirement. plz let me know what you are doing exactly from the below 2 approaches:

go to one table 1 - execute sp - return xml file1 - add <Extract> ... </Extract> as root node

go to one table 2 - execute sp - return xml file2 - add <Extract> ... </Extract> as root node

go to one table 3 - execute sp - return xml file3 - add <Extract> ... </Extract> as root node

..........

( or )

go to one table1 - get some details

go to one table2 - get some details

go to one table3 - get some details

...........

pass details to sp - return xml file - add <extract> .. <extract> as root node

confirm what you are doing?

Regards,

kwaerol.

|||alright this is the current setup

here's the psuedo of the current c# app

Code Snippet


for each table.. {
x += executescalar("theSPwithForXML") //appends each result
}
x = "<Extract>" + x + "</Extract>"
// then saves x as xml file

what i'm trying to achieve is

x = executescalar("theSPthatAppendsAllTablesIntoOneXML")
// then saves x as xml file

since you cannot assign the result of a query with a FOR XML to a variable in SQL2K, i'm looking for other alternatives or workarounds in TSQL, so that "theSPthatAppendsAllTablesIntoOneXML" can return a single xml with all the tables that i need to convert.

the last resort that i'm looking at is returning multiple result instead

CREATE PROCEDURE theSPthatAppendsAllTablesIntoOneXML
AS

SELECT *
FROM Table1
FOR XML AUTO, ELEMENTS

SELECT *
FROM Table2
FOR XML AUTO, ELEMENTS

SELECT *
FROM Table3
FOR XML AUTO, ELEMENTS

-- etc etc

GO|||

Hi,

You are correct. As per my knowledge we cannot take the xml output into a local variable in sql2k.

I feel that every time u do some sql operation and get some xml output

At last want to append <extract> nodes and save that as xml file.

If I am correct. Why don't you get the resultsets at one slot from db and then make use of Load xml using XMldatadocument.

If required you can create one schema file and make use of it to load the xml data document from dataset (having multiple Tables)

Regards,

Subbu