Showing posts with label creating. Show all posts
Showing posts with label creating. Show all posts

Tuesday, March 20, 2012

Connecting to Oracle database

Hi,

I want to connect to Oracle Database by creating a dsn in SQL Server 2005 Reporting Tool. I am unable to creating a new dsn with the wizard ir is providing, please help me how to create a new dsn so that my new report can get the data from Oracle database.

Thanks in Advance,

Ramesh.

You have to setup the oracle server with the ORACLE Net Provider which has to be installed first, for ORacle 8 its Oracle NET8. Then you can choose the provider in the DNS selector. Although there is a Provider within the .NET Framework I would perfer installing the Oracle provider.

HTH, Jens Suessmeyer.

Sunday, March 11, 2012

connecting to database error

Hi there

i have a problem connecting creating a data source to SQL server express.

I am running winXP with service pack2

My machine is APOLLO\SQLEXPRESS

i AM USING AN ODBC CONNECTION.

i GET THE FOLLOWING ERRORS:

SQL SERVER ERROR 1231

AND

SQL SERVER ERROR 17.

Having done a google search and looked at the local security settings i am not sure what to add to the object names.

Can anybody please help.Gino

Gino,

You need to add authentication to your connection string. An application has it's own identity that SQL Server will not recognize.

Adamus

|||

Hi there again

Could you please state step by step procedure to perform this authentication. Is this authentication code based or windows based as i have mentioned previously? If this is code based could you please give some hints.

Gino

Thursday, March 8, 2012

Connecting to an Oracle Databse Server using SQL Express

Hello everyone,

I am working on a project for a professor. The project entails

designing and creating a database.We

were given individual space on the schools database server and we were given

SSH secure shell to connect and manage our respective databases.I took it upon myself to try out SQL Server

Express.Using the management studio I

am trying to connect to my school database and can’t seem to figure it

out.Can someone please give a noob some

simple and quick instructions on how to achieve this?

Thank you,

Your Friendly Neighborhood Programmer,

This is the SSH product in case any one was interested, ftp://ftp.ssh.com/pub/ssh/SSHSecureShellClient-3.2.9.exe

The title of your post is a little confusing. SQL Server Express Management tools don't connect to Oracle directly, unless you use an OPENQUERY statement or create a linked server. You can read more about those topics in Books Online. For more basic information on connecting to a database, check here:

http://msdn2.microsoft.com/en-us/library/ms345332.aspx

Microsoft also puts out a complete training series for free on Express:

http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx

Buck Woody

Connecting to an Oracle Databse Server using SQL Express

Hello everyone,

I am working on a project for a professor. The project entails

designing and creating a database.We

were given individual space on the schools database server and we were given

SSH secure shell to connect and manage our respective databases.I took it upon myself to try out SQL Server

Express.Using the management studio I

am trying to connect to my school database and can’t seem to figure it

out.Can someone please give a noob some

simple and quick instructions on how to achieve this?

Thank you,

Your Friendly Neighborhood Programmer,

This is the SSH product in case any one was interested, ftp://ftp.ssh.com/pub/ssh/SSHSecureShellClient-3.2.9.exe

The title of your post is a little confusing. SQL Server Express Management tools don't connect to Oracle directly, unless you use an OPENQUERY statement or create a linked server. You can read more about those topics in Books Online. For more basic information on connecting to a database, check here:

http://msdn2.microsoft.com/en-us/library/ms345332.aspx

Microsoft also puts out a complete training series for free on Express:

http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx

Buck Woody

Sunday, February 19, 2012

Connecting Data with Groups

I'm creating Reporting Services reports in Visual Studio. I'm in the
interface that shows the Data, Layout, and Preview tabs.
I've recently learned that I can drag a list control onto the design surface
from the toolbox, then drag a field from the dataset onto the list control.
I can click the list control properties, click "Edit details group..." In
the top line of the expression list, I choose my field from the dropdown. I
check "Page break at end." If my data is from "select name from mytable", and
there's 4 names, I get 4 pages. This works great!
Here's the problem. I want my data to be from "select name, itemsordered,
itemsbought from mytable". I want itemsordered and itemsbought to go into a
table, leaving name in the list control. How do I reference the table control
to the list control?
I have 4 records. In everything I've tried, pages 1-4 show the names in the
list control, and pages 5-8 show the items in the table. Page 1 should show
the name from record 1, and the items in the table from record 1. Page 2
should show the name from record 2, and the items in the table from record
2...
--
RandyI believe I was one of those who answered before and thought this may be an
issue. There are a couple of approaches you can take. The first is to
continue using the list control. You can actually drag any fields you want
into it. Resize it if you don't have enough room. You can arrange the
additional fields in a table format.
If you want a real table format then you should replace the list control
with the table control.
You'll start out with three rows, the header, detail and footer.
Right click on the gray row selector on the far left of the detail row.
Click "Insert Group"
In the first row of the expressions list pick the name field from the combo
box.
Check the "Page break at end" check box below.
Click "OK"
You'll now have two new rows in the table, one above and one below the
detail row. These are the group header and footer rows.
You can drag the name field to the group header.
You can drag the other fields to the detail row.
Based on your first post it sounds like you'll need more than one detail row
to accomodate all of the fields. If this is the case, simply right click on
the row selector for the detail row and click "Insert row above" or "Insert
row below" and this will add detail rows. You can also right click on the
group footer row selector and choose "Delete rows" to delete it if you don't
need a group footer. You should also know that if you need more columns to
arrange your fields you can right click on the column selectors and insert
additional columns.
Hope that helps.
"randy1200" wrote:
> I'm creating Reporting Services reports in Visual Studio. I'm in the
> interface that shows the Data, Layout, and Preview tabs.
> I've recently learned that I can drag a list control onto the design surface
> from the toolbox, then drag a field from the dataset onto the list control.
> I can click the list control properties, click "Edit details group..." In
> the top line of the expression list, I choose my field from the dropdown. I
> check "Page break at end." If my data is from "select name from mytable", and
> there's 4 names, I get 4 pages. This works great!
> Here's the problem. I want my data to be from "select name, itemsordered,
> itemsbought from mytable". I want itemsordered and itemsbought to go into a
> table, leaving name in the list control. How do I reference the table control
> to the list control?
> I have 4 records. In everything I've tried, pages 1-4 show the names in the
> list control, and pages 5-8 show the items in the table. Page 1 should show
> the name from record 1, and the items in the table from record 1. Page 2
> should show the name from record 2, and the items in the table from record
> 2...
> --
> Randy|||Hi Randy,
Welcome to use MSDN Managed Newsgroup Support.
From your description, my understanding of this issue is: You want to show
reference a table in a list. If I misunderstood your concern, please feel
free to point it out.
You can just drag a table in to the list control and put the fields into
the table.
Hope this will be helpful.
Wei Lu
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
=====================================================When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Many thanks for the responses. They are appreciated. Your previous response
did help a lot.
The idea is I'd like to sync different toolbox containers to display from
the same record.
I get the idea that I can just position items from the DataSet within a
large listbox. I'm just surprised that Microsoft didn't provide a facility
to allow items from the same record to display in different tools such as
table and list. I can imagine times when it would be very useful.
Randy
"Limey" <Limey@.discussions.microsoft.com> wrote in message
news:F8DA3AB0-25D7-4EF6-ACEB-0CF0E6CF899B@.microsoft.com...
>I believe I was one of those who answered before and thought this may be an
> issue. There are a couple of approaches you can take. The first is to
> continue using the list control. You can actually drag any fields you
> want
> into it. Resize it if you don't have enough room. You can arrange the
> additional fields in a table format.
> If you want a real table format then you should replace the list control
> with the table control.
> You'll start out with three rows, the header, detail and footer.
> Right click on the gray row selector on the far left of the detail row.
> Click "Insert Group"
> In the first row of the expressions list pick the name field from the
> combo
> box.
> Check the "Page break at end" check box below.
> Click "OK"
> You'll now have two new rows in the table, one above and one below the
> detail row. These are the group header and footer rows.
> You can drag the name field to the group header.
> You can drag the other fields to the detail row.
> Based on your first post it sounds like you'll need more than one detail
> row
> to accomodate all of the fields. If this is the case, simply right click
> on
> the row selector for the detail row and click "Insert row above" or
> "Insert
> row below" and this will add detail rows. You can also right click on the
> group footer row selector and choose "Delete rows" to delete it if you
> don't
> need a group footer. You should also know that if you need more columns
> to
> arrange your fields you can right click on the column selectors and insert
> additional columns.
> Hope that helps.
>
> "randy1200" wrote:
>> I'm creating Reporting Services reports in Visual Studio. I'm in the
>> interface that shows the Data, Layout, and Preview tabs.
>> I've recently learned that I can drag a list control onto the design
>> surface
>> from the toolbox, then drag a field from the dataset onto the list
>> control.
>> I can click the list control properties, click "Edit details group..." In
>> the top line of the expression list, I choose my field from the dropdown.
>> I
>> check "Page break at end." If my data is from "select name from mytable",
>> and
>> there's 4 names, I get 4 pages. This works great!
>> Here's the problem. I want my data to be from "select name, itemsordered,
>> itemsbought from mytable". I want itemsordered and itemsbought to go into
>> a
>> table, leaving name in the list control. How do I reference the table
>> control
>> to the list control?
>> I have 4 records. In everything I've tried, pages 1-4 show the names in
>> the
>> list control, and pages 5-8 show the items in the table. Page 1 should
>> show
>> the name from record 1, and the items in the table from record 1. Page 2
>> should show the name from record 2, and the items in the table from
>> record
>> 2...
>> --
>> Randy|||Many thanks for the response.
What you said here is exactly right. The problem is that my DataSet is a
select statement which uses both inner and outer joins. If there's not a
one-to-one relationship for a joined record, then the table can end up
displaying more than one record for a given item in the list control.
It really seems funny to me that Microsoft doesn't provide a mechanism to
link different tools from the toolbox (such as table and list) to a given
record.
Randy
"Wei Lu" <t-weilu@.online.microsoft.com> wrote in message
news:OHaY6b9RGHA.3492@.TK2MSFTNGXA03.phx.gbl...
> Hi Randy,
> Welcome to use MSDN Managed Newsgroup Support.
> From your description, my understanding of this issue is: You want to show
> reference a table in a list. If I misunderstood your concern, please feel
> free to point it out.
> You can just drag a table in to the list control and put the fields into
> the table.
> Hope this will be helpful.
> Wei Lu
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> =====================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||I have needed to do what you are talking about many times (if I understand
correctly). When using list boxes ... if you have multiple groupings then
you need to nest the list boxes within each other. For instance ... if you
have data like city, state, country. You can create a table that has
groupings by country, state, and city and display detail info about the city
within the table. If you want to have a similar display using lists ... then
you must have 3 list boxes nested. The outer is grouped by country, next
inner list is state, and inside state is city. That might get you started.
"Randy" wrote:
> Many thanks for the response.
> What you said here is exactly right. The problem is that my DataSet is a
> select statement which uses both inner and outer joins. If there's not a
> one-to-one relationship for a joined record, then the table can end up
> displaying more than one record for a given item in the list control.
> It really seems funny to me that Microsoft doesn't provide a mechanism to
> link different tools from the toolbox (such as table and list) to a given
> record.
> Randy
> "Wei Lu" <t-weilu@.online.microsoft.com> wrote in message
> news:OHaY6b9RGHA.3492@.TK2MSFTNGXA03.phx.gbl...
> > Hi Randy,
> >
> > Welcome to use MSDN Managed Newsgroup Support.
> >
> > From your description, my understanding of this issue is: You want to show
> > reference a table in a list. If I misunderstood your concern, please feel
> > free to point it out.
> >
> > You can just drag a table in to the list control and put the fields into
> > the table.
> >
> > Hope this will be helpful.
> >
> > Wei Lu
> > Microsoft Online Partner Support
> >
> > Get Secure! - www.microsoft.com/security
> > =====================================================> > When responding to posts, please "Reply to Group" via your newsreader so
> > that others may learn and benefit from your issue.
> > =====================================================> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> >
>
>

Friday, February 17, 2012

Connecting a Cube from Excel 2007

Hi,

i am working with a XP-Client and try to connect to a WinServer2003, (SP2, AS2005) to access an AS2005-cube by Excel 2007. Creating a new connection, i can choose either connect via windows authentification or by entering a user/PW.

The first way (windows authentification) always works fine, but when i try to connect through an sql user, i run on an error at last. The connection works fine, i can select the desired cube but after the last "OK"-Button i get an error message like "Initialization of Data source failed".

the sql user should have admin right on the server.

Do i make sth. wrong?

SQL Server 2005 Analyisis Services Supports only Windows Authentication. (SQL Authentication is only possible if you connect to the SQL Server 2005 Database Engine)

So the username and password you want to enter must be a valid windows nt user with permission on the analysis services database. (check save password otherwise you get errors in excel)

HANNES

Friday, February 10, 2012

Connect to SQL 2005 via Visual Studio application

I have created a SQL 2005 database with about 100 tables. It was actually
mostly created on 2000 and attached. I have started creating a VS VB
application. I am able to use any and all the tables in the applications.
I
have updated individual tables.
I have published the appl and have installed it on a different PC. When I
do, I get this message: An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005 this failure
may be caused by the fact that under the default settings the SQL Server doe
s
not allow remote conncections.
I have previously configured the SQL server to allow remote TCP/IP
connections. However, I named the instance of the server when I created it.
My computer is BAA1 and the instance is BAA1\BAA2. I don't really want the
application to attach to my computer, but to the SQLEXPRESS (runtime?)
version of the database that goes with the application.
Can I buy a clue here? This is killing me.
Thanks in advance.
David BennerFor the first problem - connecting to the instance, run through my short
tutorial on connecting. It covers instance names, ports, firewalls, and the
protocols. It's in the Books Online tutorials, or at
http://msdn2.microsoft.com/en-us/library/ms345318(SQL.90).aspx
As for moving the database, after you are connected to BAA1\BAA2, run
sp_detach_db (http://msdn2.microsoft.com/en-us/library/ms188031.aspx) and
then on your SQL Express instance run CREATE DATABASE ... FOR ATTACH,
example E at http://msdn2.microsoft.com/en-us/library/ms176061.aspx
Rick Byham
MCDBA, MCSE, MCSA
Documentation Manager,
Microsoft, SQL Server Books Online
This posting is provided "as is" with
no warranties, and confers no rights.
"Benner" <Benner@.discussions.microsoft.com> wrote in message
news:0B6DB41B-68B3-4CDF-B48D-420DC1738DAB@.microsoft.com...
>I have created a SQL 2005 database with about 100 tables. It was actually
> mostly created on 2000 and attached. I have started creating a VS VB
> application. I am able to use any and all the tables in the applications.
> I
> have updated individual tables.
> I have published the appl and have installed it on a different PC. When I
> do, I get this message: An error has occurred while establishing a
> connection to the server. When connecting to SQL Server 2005 this failure
> may be caused by the fact that under the default settings the SQL Server
> does
> not allow remote conncections.
> I have previously configured the SQL server to allow remote TCP/IP
> connections. However, I named the instance of the server when I created
> it.
> My computer is BAA1 and the instance is BAA1\BAA2. I don't really want
> the
> application to attach to my computer, but to the SQLEXPRESS (runtime?)
> version of the database that goes with the application.
> Can I buy a clue here? This is killing me.
> Thanks in advance.
>
> --
> David Benner|||Rick:
Thanks for your reply.
I think I was not clear enough in describing my problem. I have no problem
connection to the database and using that database with a connection in VS
2005. I have updated the database with both the SQL Server Mgmt Studio and
with the application I have created. I am having trouble when I publish the
VS 2005 windows application and try to use it on another computer. I am not
trying to connect with the application back to my first or main computer, bu
t
expect the application to connect to a "runtime" version of the database on
the same computer as the application.
I don't have an instance called SQLEXPRESS. I am not sure if my
installation choices precluded that from installing or what. Can I create
the SQLEXPRESS instance or do I need it to do what I am describing?
David Benner
"Rick Byham [MS]" wrote:

> For the first problem - connecting to the instance, run through my short
> tutorial on connecting. It covers instance names, ports, firewalls, and th
e
> protocols. It's in the Books Online tutorials, or at
> http://msdn2.microsoft.com/en-us/library/ms345318(SQL.90).aspx
> As for moving the database, after you are connected to BAA1\BAA2, run
> sp_detach_db (http://msdn2.microsoft.com/en-us/library/ms188031.aspx) and
> then on your SQL Express instance run CREATE DATABASE ... FOR ATTACH,
> example E at http://msdn2.microsoft.com/en-us/library/ms176061.aspx
> Rick Byham
> MCDBA, MCSE, MCSA
> Documentation Manager,
> Microsoft, SQL Server Books Online
> This posting is provided "as is" with
> no warranties, and confers no rights.
> "Benner" <Benner@.discussions.microsoft.com> wrote in message
> news:0B6DB41B-68B3-4CDF-B48D-420DC1738DAB@.microsoft.com...
>
>|||You need to install SQL Express on the machine you want to run the
application on. When you do, it will create a SQLEXPRESS instance by
default. There's more information on User Instances here:
http://msdn.microsoft.com/sql/expre...expuserinst.asp
and more information on embedding express in your setup here:
http://msdn.microsoft.com/library/d...>
xCustApp.asp
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Benner" <Benner@.discussions.microsoft.com> wrote in message
news:A8DFB820-E29A-4266-A913-B58A5EEE3B25@.microsoft.com...[vbcol=seagreen]
> Rick:
> Thanks for your reply.
> I think I was not clear enough in describing my problem. I have no
> problem
> connection to the database and using that database with a connection in VS
> 2005. I have updated the database with both the SQL Server Mgmt Studio
> and
> with the application I have created. I am having trouble when I publish
> the
> VS 2005 windows application and try to use it on another computer. I am
> not
> trying to connect with the application back to my first or main computer,
> but
> expect the application to connect to a "runtime" version of the database
> on
> the same computer as the application.
> I don't have an instance called SQLEXPRESS. I am not sure if my
> installation choices precluded that from installing or what. Can I create
> the SQLEXPRESS instance or do I need it to do what I am describing?
>
> --
> David Benner
>
> "Rick Byham [MS]" wrote:
>