Showing posts with label sources. Show all posts
Showing posts with label sources. Show all posts

Thursday, March 29, 2012

Credentials in Data Sources are getting locked out of SQL

Weird one this....

Created a report. Set up a new datasource. Using credentials securely stored in server. Set up a local user on the SQL Server specifically to reference through this datasource.

Go to reportserver, run the report, and it runs fine. Run it a couple more times, runs fine. Then, all of a sudden, it fails, with the error message

  • The referenced account is currently locked out and may not be logged on to. (Exception from HRESULT: 0x80070775)

    This is very strange. I check the account on SQL, and it's still enabled. As it's not a domain account, it hasn't been disabled on the domain. I'm not even familiar with the phrase 'locked out'. After a bit of checking I find out about maxInvalidPasswordAttempts, whereby ASP 'locks out' accounts after 'n' wrong password attempts.

    Firstly, I'm not entering the password wrong. It's correctly entered, and stored in the report server.

    Secondly, where the heck does RS get off locking out accounts without my permission?

    I have no idea how to unlock these accounts.

    If I go ahead and create another account on the SQL, exactly the same thing happens. I can reproduce this at will. It works the first couple of times, then bang, 'locked out' again.

    Anyone got any ideas on how to modify this behavoir?I am getting the same error, all of a sudden, does anyone have a clue how to fix this?|||I am having the same problem. Does anyone know if this is a SP2 problem? Please help!

    |||Hi
    How did you create a user to access the database and this user is not a domain user? If this user is not a sql login user then the OS will lock ou the user and thus the dB lockout. If the user is a non domain user then the OS is trying netuse the account and this will definately lock it out.

    gatharia|||

    |||

    I've solved part of my troubles. I had set up a shared schedule and accidentally was using the default recurrance pattern to start every 10 minutes. This can happen very easily, as when you go to test something you might want to run it once. So... you create a new shared schedule (so you don't end up running everything on your production shared schedule). I don't know why the default is set to this recurrance pattern instead of once. Anyway... I was having the same problem as Sam Loud, but it was not caused by what I was currently doing. It was caused by this recurring "thing" that was running with the wrong password.

    Another "Thing" that caused this problem is when I tried to use shared data sources. As far as I can tell, you cannot use shared data sources when trying to use subscriptions to fileshare. I think this is a bug with reportserver. The first time it runs, it will run successfully. The second time it runs, you will get the RSLogonFailed. I don't know any way around this problem other than to just not use shared data sources.

    The other thing that has caused me problems is that when I modify a report and deploy it, make sure not to overwrite the datasource (note: this is the default setting in IIS). If you overwrite the datasource, then the userid and password that you set up on the datasource on the server gets wiped out and everything bombs out on logon and again you have a lockout situation.

    I am still having some lockouts and still working on this problem. If anyone else can let me know what their experiences are that would be very helpful. I am using subscriptions to fileshare with about 200 reports running on various schedules. Thanks!

  • Credentials in Data Sources are getting locked out of SQL

    Weird one this....

    Created a report. Set up a new datasource. Using credentials securely stored in server. Set up a local user on the SQL Server specifically to reference through this datasource.

    Go to reportserver, run the report, and it runs fine. Run it a couple more times, runs fine. Then, all of a sudden, it fails, with the error message

  • The referenced account is currently locked out and may not be logged on to. (Exception from HRESULT: 0x80070775) This is very strange. I check the account on SQL, and it's still enabled. As it's not a domain account, it hasn't been disabled on the domain. I'm not even familiar with the phrase 'locked out'. After a bit of checking I find out about maxInvalidPasswordAttempts, whereby ASP 'locks out' accounts after 'n' wrong password attempts.

    Firstly, I'm not entering the password wrong. It's correctly entered, and stored in the report server.

    Secondly, where the heck does RS get off locking out accounts without my permission?

    I have no idea how to unlock these accounts.

    If I go ahead and create another account on the SQL, exactly the same thing happens. I can reproduce this at will. It works the first couple of times, then bang, 'locked out' again.

    Anyone got any ideas on how to modify this behavoir?
    I am getting the same error, all of a sudden, does anyone have a clue how to fix this?|||I am having the same problem. Does anyone know if this is a SP2 problem? Please help!|||Hi
    How did you create a user to access the database and this user is not a domain user? If this user is not a sql login user then the OS will lock ou the user and thus the dB lockout. If the user is a non domain user then the OS is trying netuse the account and this will definately lock it out.

    gatharia
    |||

    I've solved part of my troubles. I had set up a shared schedule and accidentally was using the default recurrance pattern to start every 10 minutes. This can happen very easily, as when you go to test something you might want to run it once. So... you create a new shared schedule (so you don't end up running everything on your production shared schedule). I don't know why the default is set to this recurrance pattern instead of once. Anyway... I was having the same problem as Sam Loud, but it was not caused by what I was currently doing. It was caused by this recurring "thing" that was running with the wrong password.

    Another "Thing" that caused this problem is when I tried to use shared data sources. As far as I can tell, you cannot use shared data sources when trying to use subscriptions to fileshare. I think this is a bug with reportserver. The first time it runs, it will run successfully. The second time it runs, you will get the RSLogonFailed. I don't know any way around this problem other than to just not use shared data sources.

    The other thing that has caused me problems is that when I modify a report and deploy it, make sure not to overwrite the datasource (note: this is the default setting in IIS). If you overwrite the datasource, then the userid and password that you set up on the datasource on the server gets wiped out and everything bombs out on logon and again you have a lockout situation.

    I am still having some lockouts and still working on this problem. If anyone else can let me know what their experiences are that would be very helpful. I am using subscriptions to fileshare with about 200 reports running on various schedules. Thanks!

    |||

    The final (and most difficult to resolve) problem that was causing the "logon Failed" and then account lockout problem(s) was related to the windows account that expired (it was set up to expire in 90 days). Since I used this userid when setting up my report subscriptions, all of my subscriptions failed with invalid login and then the account was locked out. When the account userid was reactivated in WINDOWS with the same password, still all of the subscriptions failed on login. This was very frustrating because the main report services account was getting locked every day and nobody could get to the report server and all the report jobs were failing. I tried going into each report subscription and retyping the userid and password (which were valid), but I still got the invalid login. After 3 weeks of frustration and trying different things, I have discovered that what you have to do is 1) go in to the subscription general screen and change the userid and password to something invalid and totally different 2) go out of the subscription general screen (to save your changes) and 3) go back into the subscription general screen and re-type the correct userid and password. This resolved all of my login and lockout problems with the subscriptions and writing to datashare. I hope that this helps anyone else out there who might be struggling with this same issue/problem with reportserver and subscriptions. It is obviously a bug.

  • Credentials in Data Sources are getting locked out of SQL

    Weird one this....

    Created a report. Set up a new datasource. Using credentials securely stored in server. Set up a local user on the SQL Server specifically to reference through this datasource.

    Go to reportserver, run the report, and it runs fine. Run it a couple more times, runs fine. Then, all of a sudden, it fails, with the error message

  • The referenced account is currently locked out and may not be logged on to. (Exception from HRESULT: 0x80070775) This is very strange. I check the account on SQL, and it's still enabled. As it's not a domain account, it hasn't been disabled on the domain. I'm not even familiar with the phrase 'locked out'. After a bit of checking I find out about maxInvalidPasswordAttempts, whereby ASP 'locks out' accounts after 'n' wrong password attempts.

    Firstly, I'm not entering the password wrong. It's correctly entered, and stored in the report server.

    Secondly, where the heck does RS get off locking out accounts without my permission?

    I have no idea how to unlock these accounts.

    If I go ahead and create another account on the SQL, exactly the same thing happens. I can reproduce this at will. It works the first couple of times, then bang, 'locked out' again.

    Anyone got any ideas on how to modify this behavoir?
    I am getting the same error, all of a sudden, does anyone have a clue how to fix this?|||I am having the same problem. Does anyone know if this is a SP2 problem? Please help!|||Hi
    How did you create a user to access the database and this user is not a domain user? If this user is not a sql login user then the OS will lock ou the user and thus the dB lockout. If the user is a non domain user then the OS is trying netuse the account and this will definately lock it out.

    gatharia
    |||

    I've solved part of my troubles. I had set up a shared schedule and accidentally was using the default recurrance pattern to start every 10 minutes. This can happen very easily, as when you go to test something you might want to run it once. So... you create a new shared schedule (so you don't end up running everything on your production shared schedule). I don't know why the default is set to this recurrance pattern instead of once. Anyway... I was having the same problem as Sam Loud, but it was not caused by what I was currently doing. It was caused by this recurring "thing" that was running with the wrong password.

    Another "Thing" that caused this problem is when I tried to use shared data sources. As far as I can tell, you cannot use shared data sources when trying to use subscriptions to fileshare. I think this is a bug with reportserver. The first time it runs, it will run successfully. The second time it runs, you will get the RSLogonFailed. I don't know any way around this problem other than to just not use shared data sources.

    The other thing that has caused me problems is that when I modify a report and deploy it, make sure not to overwrite the datasource (note: this is the default setting in IIS). If you overwrite the datasource, then the userid and password that you set up on the datasource on the server gets wiped out and everything bombs out on logon and again you have a lockout situation.

    I am still having some lockouts and still working on this problem. If anyone else can let me know what their experiences are that would be very helpful. I am using subscriptions to fileshare with about 200 reports running on various schedules. Thanks!

    |||

    The final (and most difficult to resolve) problem that was causing the "logon Failed" and then account lockout problem(s) was related to the windows account that expired (it was set up to expire in 90 days). Since I used this userid when setting up my report subscriptions, all of my subscriptions failed with invalid login and then the account was locked out. When the account userid was reactivated in WINDOWS with the same password, still all of the subscriptions failed on login. This was very frustrating because the main report services account was getting locked every day and nobody could get to the report server and all the report jobs were failing. I tried going into each report subscription and retyping the userid and password (which were valid), but I still got the invalid login. After 3 weeks of frustration and trying different things, I have discovered that what you have to do is 1) go in to the subscription general screen and change the userid and password to something invalid and totally different 2) go out of the subscription general screen (to save your changes) and 3) go back into the subscription general screen and re-type the correct userid and password. This resolved all of my login and lockout problems with the subscriptions and writing to datashare. I hope that this helps anyone else out there who might be struggling with this same issue/problem with reportserver and subscriptions. It is obviously a bug.

  • Credentials in Data Sources are getting locked out of SQL

    Weird one this....

    Created a report. Set up a new datasource. Using credentials securely stored in server. Set up a local user on the SQL Server specifically to reference through this datasource.

    Go to reportserver, run the report, and it runs fine. Run it a couple more times, runs fine. Then, all of a sudden, it fails, with the error message

  • The referenced account is currently locked out and may not be logged on to. (Exception from HRESULT: 0x80070775) This is very strange. I check the account on SQL, and it's still enabled. As it's not a domain account, it hasn't been disabled on the domain. I'm not even familiar with the phrase 'locked out'. After a bit of checking I find out about maxInvalidPasswordAttempts, whereby ASP 'locks out' accounts after 'n' wrong password attempts.

    Firstly, I'm not entering the password wrong. It's correctly entered, and stored in the report server.

    Secondly, where the heck does RS get off locking out accounts without my permission?

    I have no idea how to unlock these accounts.

    If I go ahead and create another account on the SQL, exactly the same thing happens. I can reproduce this at will. It works the first couple of times, then bang, 'locked out' again.

    Anyone got any ideas on how to modify this behavoir?
    I am getting the same error, all of a sudden, does anyone have a clue how to fix this?|||I am having the same problem. Does anyone know if this is a SP2 problem? Please help!|||Hi
    How did you create a user to access the database and this user is not a domain user? If this user is not a sql login user then the OS will lock ou the user and thus the dB lockout. If the user is a non domain user then the OS is trying netuse the account and this will definately lock it out.

    gatharia
    |||

    I've solved part of my troubles. I had set up a shared schedule and accidentally was using the default recurrance pattern to start every 10 minutes. This can happen very easily, as when you go to test something you might want to run it once. So... you create a new shared schedule (so you don't end up running everything on your production shared schedule). I don't know why the default is set to this recurrance pattern instead of once. Anyway... I was having the same problem as Sam Loud, but it was not caused by what I was currently doing. It was caused by this recurring "thing" that was running with the wrong password.

    Another "Thing" that caused this problem is when I tried to use shared data sources. As far as I can tell, you cannot use shared data sources when trying to use subscriptions to fileshare. I think this is a bug with reportserver. The first time it runs, it will run successfully. The second time it runs, you will get the RSLogonFailed. I don't know any way around this problem other than to just not use shared data sources.

    The other thing that has caused me problems is that when I modify a report and deploy it, make sure not to overwrite the datasource (note: this is the default setting in IIS). If you overwrite the datasource, then the userid and password that you set up on the datasource on the server gets wiped out and everything bombs out on logon and again you have a lockout situation.

    I am still having some lockouts and still working on this problem. If anyone else can let me know what their experiences are that would be very helpful. I am using subscriptions to fileshare with about 200 reports running on various schedules. Thanks!

    |||

    The final (and most difficult to resolve) problem that was causing the "logon Failed" and then account lockout problem(s) was related to the windows account that expired (it was set up to expire in 90 days). Since I used this userid when setting up my report subscriptions, all of my subscriptions failed with invalid login and then the account was locked out. When the account userid was reactivated in WINDOWS with the same password, still all of the subscriptions failed on login. This was very frustrating because the main report services account was getting locked every day and nobody could get to the report server and all the report jobs were failing. I tried going into each report subscription and retyping the userid and password (which were valid), but I still got the invalid login. After 3 weeks of frustration and trying different things, I have discovered that what you have to do is 1) go in to the subscription general screen and change the userid and password to something invalid and totally different 2) go out of the subscription general screen (to save your changes) and 3) go back into the subscription general screen and re-type the correct userid and password. This resolved all of my login and lockout problems with the subscriptions and writing to datashare. I hope that this helps anyone else out there who might be struggling with this same issue/problem with reportserver and subscriptions. It is obviously a bug.

  • Credentials in Data Sources are getting locked out of SQL

    Weird one this....

    Created a report. Set up a new datasource. Using credentials securely stored in server. Set up a local user on the SQL Server specifically to reference through this datasource.

    Go to reportserver, run the report, and it runs fine. Run it a couple more times, runs fine. Then, all of a sudden, it fails, with the error message

  • The referenced account is currently locked out and may not be logged on to. (Exception from HRESULT: 0x80070775)

    This is very strange. I check the account on SQL, and it's still enabled. As it's not a domain account, it hasn't been disabled on the domain. I'm not even familiar with the phrase 'locked out'. After a bit of checking I find out about maxInvalidPasswordAttempts, whereby ASP 'locks out' accounts after 'n' wrong password attempts.

    Firstly, I'm not entering the password wrong. It's correctly entered, and stored in the report server.

    Secondly, where the heck does RS get off locking out accounts without my permission?

    I have no idea how to unlock these accounts.

    If I go ahead and create another account on the SQL, exactly the same thing happens. I can reproduce this at will. It works the first couple of times, then bang, 'locked out' again.

    Anyone got any ideas on how to modify this behavoir?
    I am getting the same error, all of a sudden, does anyone have a clue how to fix this?|||I am having the same problem. Does anyone know if this is a SP2 problem? Please help!

    |||Hi
    How did you create a user to access the database and this user is not a domain user? If this user is not a sql login user then the OS will lock ou the user and thus the dB lockout. If the user is a non domain user then the OS is trying netuse the account and this will definately lock it out.

    gatharia
    |||

    |||

    I've solved part of my troubles. I had set up a shared schedule and accidentally was using the default recurrance pattern to start every 10 minutes. This can happen very easily, as when you go to test something you might want to run it once. So... you create a new shared schedule (so you don't end up running everything on your production shared schedule). I don't know why the default is set to this recurrance pattern instead of once. Anyway... I was having the same problem as Sam Loud, but it was not caused by what I was currently doing. It was caused by this recurring "thing" that was running with the wrong password.

    Another "Thing" that caused this problem is when I tried to use shared data sources. As far as I can tell, you cannot use shared data sources when trying to use subscriptions to fileshare. I think this is a bug with reportserver. The first time it runs, it will run successfully. The second time it runs, you will get the RSLogonFailed. I don't know any way around this problem other than to just not use shared data sources.

    The other thing that has caused me problems is that when I modify a report and deploy it, make sure not to overwrite the datasource (note: this is the default setting in IIS). If you overwrite the datasource, then the userid and password that you set up on the datasource on the server gets wiped out and everything bombs out on logon and again you have a lockout situation.

    I am still having some lockouts and still working on this problem. If anyone else can let me know what their experiences are that would be very helpful. I am using subscriptions to fileshare with about 200 reports running on various schedules. Thanks!

    |||

    The final (and most difficult to resolve) problem that was causing the "logon Failed" and then account lockout problem(s) was related to the windows account that expired (it was set up to expire in 90 days). Since I used this userid when setting up my report subscriptions, all of my subscriptions failed with invalid login and then the account was locked out. When the account userid was reactivated in WINDOWS with the same password, still all of the subscriptions failed on login. This was very frustrating because the main report services account was getting locked every day and nobody could get to the report server and all the report jobs were failing. I tried going into each report subscription and retyping the userid and password (which were valid), but I still got the invalid login. After 3 weeks of frustration and trying different things, I have discovered that what you have to do is 1) go in to the subscription general screen and change the userid and password to something invalid and totally different 2) go out of the subscription general screen (to save your changes) and 3) go back into the subscription general screen and re-type the correct userid and password. This resolved all of my login and lockout problems with the subscriptions and writing to datashare. I hope that this helps anyone else out there who might be struggling with this same issue/problem with reportserver and subscriptions. It is obviously a bug.

  • Credentials for Data Sources - Changing Authentication

    I have Visual Studio installed on my local laptop, as well as on the report server. The only place reporting services is installed is on the report server.

    I have a solution called “Performance Monitoring”, and within that solution is a report of the same name. That report uses 2 data sets, “DSOne” and “DSTwo” and these data sets are pulled from 2 shared data sources. I can edit the report locally and preview it just fine and the results are what we’re looking for.

    Right now, the data sources are all set to Windows authentication. We would like to tie the data sources to a specific user ID and password, so that I or anybody else is able to view the report without having to have a separate login for all those people. I have tried changing the data sources' properties in Visual Studio to reflect using a specific login/pass (my own). I have tried this in Report Manager too – editing the data sources there to use my login and pass. Both of these methods have not worked.

    In Visual Studio, in the Solution Explorer, I double click on one of the data sources and go to the credentials tab. “Use Windows Authentication” is checked, so I check “use a specific user name and password” instead and then enter my login and password. When I try to preview the report, it gives me the following error and I am stumped as to why this is:

    “An error has occurred during report processing. Cannot create a connection to data source “DSTwo”. Login failed for user “xxx”.”

    I have also tried editing the login and password through the “edit” button on the “general” tab of whatever data source I’m working with. The “Use Windows NT Integrated Security” box is checked, so I check the “Use a Specific Name and Password” box and again, type in my login info. When I hit “Test Connection”, I get the following:

    “Test connection failed because of an error in initializing provider. Login failed for user ‘xxx.”

    Hopefully this provided enough detail as to what the heck is going on here. I’ve been playing with these processes for a few days and for whatever reason, it is not working. I’m hoping somebody may have some insight as to why this is.

    Thanks,
    Matt

    If you're using stored windows credentials, you need to check the "use as windows credentials" checkbox on the data source properties page.

    -Lukasz

    Credentials for Data Sources - Changing Authentication

    I have Visual Studio installed on my local laptop, as well as on the report server. The only place reporting services is installed is on the report server.

    I have a solution called “Performance Monitoring”, and within that solution is a report of the same name. That report uses 2 data sets, “DSOne” and “DSTwo” and these data sets are pulled from 2 shared data sources. I can edit the report locally and preview it just fine and the results are what we’re looking for.

    Right now, the data sources are all set to Windows authentication. We would like to tie the data sources to a specific user ID and password, so that I or anybody else is able to view the report without having to have a separate login for all those people. I have tried changing the data sources' properties in Visual Studio to reflect using a specific login/pass (my own). I have tried this in Report Manager too – editing the data sources there to use my login and pass. Both of these methods have not worked.

    In Visual Studio, in the Solution Explorer, I double click on one of the data sources and go to the credentials tab. “Use Windows Authentication” is checked, so I check “use a specific user name and password” instead and then enter my login and password. When I try to preview the report, it gives me the following error and I am stumped as to why this is:

    “An error has occurred during report processing. Cannot create a connection to data source “DSTwo”. Login failed for user “xxx”.”

    I have also tried editing the login and password through the “edit” button on the “general” tab of whatever data source I’m working with. The “Use Windows NT Integrated Security” box is checked, so I check the “Use a Specific Name and Password” box and again, type in my login info. When I hit “Test Connection”, I get the following:

    “Test connection failed because of an error in initializing provider. Login failed for user ‘xxx.”

    Hopefully this provided enough detail as to what the heck is going on here. I’ve been playing with these processes for a few days and for whatever reason, it is not working. I’m hoping somebody may have some insight as to why this is.

    Thanks,
    Matt

    If you're using stored windows credentials, you need to check the "use as windows credentials" checkbox on the data source properties page.

    -Lukasz

    Friday, February 24, 2012

    Creating local cubes from relational sources using XMLA

    Hi,

    I have looked at Chris Webb′s example in creating local cubes. I′m trying to follow his instructions but I think that the syntax or the code is incorrect somehow.

    Code Snippet

    CREATE GLOBAL CUBE statement. FILENAME|C:\myCube.cub|DDL|

    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </Parallel>

    Hello Inmon,

    pleae visit the blog entry again and read again:

    http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!883.entry

    It is not possible to create a local cube from relational data with CREATE GLOBAL CUBE Syntax.

    I got the sample running.

    HTH

    J?rg

    |||

    Hi J?rg,

    Then I would be happy if you told me how you solved it.

    This is the example I followed by Chris:

    · Open MDX Sample app - yes, this is another one of those areas where SQLMS won't do the job. Connect to the Adventure Works database

    · Paste a CREATE GLOBAL CUBE statement into a query pane. Don't run it yet though...

    · Start a new Profiler trace on your target database

    · Run the CREATE GLOBAL CUBE statement, then stop the trace

    · Inside your trace, you'll see the CREATE GLOBAL CUBE statement appear twice followed by a statement which begins with something like this: "CREATE GLOBAL CUBE statement. FILENAME|c:\MyfileName.cub|DDL|" and is followed by an XMLA batch statement

    · Copy the XMLA batch statement out to MDX Sample App (if you find you can't do this, you might need to save the trace as an XML file and open it in Notepad or something) and

    · Close the connection to your server cube in MDX Sample app, then reconnect to the path you want to create your new cub file at, eg "c:\cubtest.cub" (instead of supplying the name of your server in the connection dialog box).

    · Run the Batch statement, and your local cube is created!

    |||

    Hi Inmon,

    this is the sample for relational datasources

    In SSMS script the database you've just created to a new query editor window. Still in SSMS, right-click on the database again and select Process, select 'Process Full' then instead of clicking OK click the Script button and choose to script to a new query editor window. You now have the two XMLA commands you need to create and process your local cube, you just need to combine them into one. Select all of the Create statement generated when you scripted the database and paste it into the Batch statement generated from the Process dialog, immediately after the first line (containing the 'Batch' command) and before the XMLA that actually does the processing. Copy the new statement, open up MDX Sample app, connect to the path of the new local cube file, paste the statement into MDX Sample app and then run it. And voila, your local cube will be built direct from the relational data source.|||

    Hi Joschko,

    I have read that example too. Combine the two scripts into one is no problem but I can′t connect to the path of my local cube. When I connect to my local cube I connect to Analysis Services and writing c:\myCube.cub in the server name field. The .cub file creates but following message appear:

    Code Snippet

    TITLE: Microsoft SQL Server Management Studio

    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


    ADDITIONAL INFORMATION:

    A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.Xmla)

    The 'c:\myCube.cub' local cube file cannot be opened. (Microsoft.AnalysisServices.Xmla)

    The operation completed successfully (Microsoft.AnalysisServices.Xmla)

    When I then run the script I recieve the following message:

    Code Snippet

    TITLE: Microsoft SQL Server Management Studio

    Either the user, DOMAIN\userid, does not have access to the c:\myCube.cub database, or the database does not exist. (Microsoft SQL Server 2005 Analysis Services)

    |||

    Hi,

    I have now succeeded with connect the script into one. Wpuld you like to confirm this?

    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </Parallel>
    </Batch>

    When I connect to my local cube through new query and select AS XMLA query and the run it I receive the following message:

    Code Snippet

    Executing the query ...

    A connection cannot be made. Ensure that the server is running.

    Execution complete

    Regards,

    Inmon

    |||

    Inmon,

    I've just got the message you sent me via my blog, but I can't reply because you're communication settings won't allow me. Can you contact me directly please? You can find my contact details at www.crossjoin.co.uk

    Chris

    |||

    I Chris,

    You ought to have the email right now. But you can write down the detail instructions about local cubes here at msdn if you want to. Thanks again for you help.

    Creating local cubes from relational sources using XMLA

    Hi,

    I have looked at Chris Webb′s example in creating local cubes. I′m trying to follow his instructions but I think that the syntax or the code is incorrect somehow.

    Code Snippet

    CREATE GLOBAL CUBE statement. FILENAME|C:\myCube.cub|DDL|

    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </Parallel>

    Hello Inmon,

    pleae visit the blog entry again and read again:

    http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!883.entry

    It is not possible to create a local cube from relational data with CREATE GLOBAL CUBE Syntax.

    I got the sample running.

    HTH

    J?rg

    |||

    Hi J?rg,

    Then I would be happy if you told me how you solved it.

    This is the example I followed by Chris:

    · Open MDX Sample app - yes, this is another one of those areas where SQLMS won't do the job. Connect to the Adventure Works database

    · Paste a CREATE GLOBAL CUBE statement into a query pane. Don't run it yet though...

    · Start a new Profiler trace on your target database

    · Run the CREATE GLOBAL CUBE statement, then stop the trace

    · Inside your trace, you'll see the CREATE GLOBAL CUBE statement appear twice followed by a statement which begins with something like this: "CREATE GLOBAL CUBE statement. FILENAME|c:\MyfileName.cub|DDL|" and is followed by an XMLA batch statement

    · Copy the XMLA batch statement out to MDX Sample App (if you find you can't do this, you might need to save the trace as an XML file and open it in Notepad or something) and

    · Close the connection to your server cube in MDX Sample app, then reconnect to the path you want to create your new cub file at, eg "c:\cubtest.cub" (instead of supplying the name of your server in the connection dialog box).

    · Run the Batch statement, and your local cube is created!

    |||

    Hi Inmon,

    this is the sample for relational datasources

    In SSMS script the database you've just created to a new query editor window. Still in SSMS, right-click on the database again and select Process, select 'Process Full' then instead of clicking OK click the Script button and choose to script to a new query editor window. You now have the two XMLA commands you need to create and process your local cube, you just need to combine them into one. Select all of the Create statement generated when you scripted the database and paste it into the Batch statement generated from the Process dialog, immediately after the first line (containing the 'Batch' command) and before the XMLA that actually does the processing. Copy the new statement, open up MDX Sample app, connect to the path of the new local cube file, paste the statement into MDX Sample app and then run it. And voila, your local cube will be built direct from the relational data source.|||

    Hi Joschko,

    I have read that example too. Combine the two scripts into one is no problem but I can′t connect to the path of my local cube. When I connect to my local cube I connect to Analysis Services and writing c:\myCube.cub in the server name field. The .cub file creates but following message appear:

    Code Snippet

    TITLE: Microsoft SQL Server Management Studio

    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


    ADDITIONAL INFORMATION:

    A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.Xmla)

    The 'c:\myCube.cub' local cube file cannot be opened. (Microsoft.AnalysisServices.Xmla)

    The operation completed successfully (Microsoft.AnalysisServices.Xmla)

    When I then run the script I recieve the following message:

    Code Snippet

    TITLE: Microsoft SQL Server Management Studio

    Either the user, DOMAIN\userid, does not have access to the c:\myCube.cub database, or the database does not exist. (Microsoft SQL Server 2005 Analysis Services)

    |||

    Hi,

    I have now succeeded with connect the script into one. Wpuld you like to confirm this?

    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </Parallel>
    </Batch>

    When I connect to my local cube through new query and select AS XMLA query and the run it I receive the following message:

    Code Snippet

    Executing the query ...

    A connection cannot be made. Ensure that the server is running.

    Execution complete

    Regards,

    Inmon

    |||

    Inmon,

    I've just got the message you sent me via my blog, but I can't reply because you're communication settings won't allow me. Can you contact me directly please? You can find my contact details at www.crossjoin.co.uk

    Chris

    |||

    I Chris,

    You ought to have the email right now. But you can write down the detail instructions about local cubes here at msdn if you want to. Thanks again for you help.

    Creating local cubes from relational sources using XMLA

    Hi,

    I have looked at Chris Webb′s example in creating local cubes. I′m trying to follow his instructions but I think that the syntax or the code is incorrect somehow.

    Code Snippet

    CREATE GLOBAL CUBE statement. FILENAME|C:\myCube.cub|DDL|

    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </Parallel>

    Hello Inmon,

    pleae visit the blog entry again and read again:

    http://cwebbbi.spaces.live.com/blog/cns!7B84B0F2C239489A!883.entry

    It is not possible to create a local cube from relational data with CREATE GLOBAL CUBE Syntax.

    I got the sample running.

    HTH

    J?rg

    |||

    Hi J?rg,

    Then I would be happy if you told me how you solved it.

    This is the example I followed by Chris:

    · Open MDX Sample app - yes, this is another one of those areas where SQLMS won't do the job. Connect to the Adventure Works database

    · Paste a CREATE GLOBAL CUBE statement into a query pane. Don't run it yet though...

    · Start a new Profiler trace on your target database

    · Run the CREATE GLOBAL CUBE statement, then stop the trace

    · Inside your trace, you'll see the CREATE GLOBAL CUBE statement appear twice followed by a statement which begins with something like this: "CREATE GLOBAL CUBE statement. FILENAME|c:\MyfileName.cub|DDL|" and is followed by an XMLA batch statement

    · Copy the XMLA batch statement out to MDX Sample App (if you find you can't do this, you might need to save the trace as an XML file and open it in Notepad or something) and

    · Close the connection to your server cube in MDX Sample app, then reconnect to the path you want to create your new cub file at, eg "c:\cubtest.cub" (instead of supplying the name of your server in the connection dialog box).

    · Run the Batch statement, and your local cube is created!

    |||

    Hi Inmon,

    this is the sample for relational datasources

    In SSMS script the database you've just created to a new query editor window. Still in SSMS, right-click on the database again and select Process, select 'Process Full' then instead of clicking OK click the Script button and choose to script to a new query editor window. You now have the two XMLA commands you need to create and process your local cube, you just need to combine them into one. Select all of the Create statement generated when you scripted the database and paste it into the Batch statement generated from the Process dialog, immediately after the first line (containing the 'Batch' command) and before the XMLA that actually does the processing. Copy the new statement, open up MDX Sample app, connect to the path of the new local cube file, paste the statement into MDX Sample app and then run it. And voila, your local cube will be built direct from the relational data source.|||

    Hi Joschko,

    I have read that example too. Combine the two scripts into one is no problem but I can′t connect to the path of my local cube. When I connect to my local cube I connect to Analysis Services and writing c:\myCube.cub in the server name field. The .cub file creates but following message appear:

    Code Snippet

    TITLE: Microsoft SQL Server Management Studio

    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


    ADDITIONAL INFORMATION:

    A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.Xmla)

    The 'c:\myCube.cub' local cube file cannot be opened. (Microsoft.AnalysisServices.Xmla)

    The operation completed successfully (Microsoft.AnalysisServices.Xmla)

    When I then run the script I recieve the following message:

    Code Snippet

    TITLE: Microsoft SQL Server Management Studio

    Either the user, DOMAIN\userid, does not have access to the c:\myCube.cub database, or the database does not exist. (Microsoft SQL Server 2005 Analysis Services)

    |||

    Hi,

    I have now succeeded with connect the script into one. Wpuld you like to confirm this?

    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </Parallel>
    </Batch>

    When I connect to my local cube through new query and select AS XMLA query and the run it I receive the following message:

    Code Snippet

    Executing the query ...

    A connection cannot be made. Ensure that the server is running.

    Execution complete

    Regards,

    Inmon

    |||

    Inmon,

    I've just got the message you sent me via my blog, but I can't reply because you're communication settings won't allow me. Can you contact me directly please? You can find my contact details at www.crossjoin.co.uk

    Chris

    |||

    I Chris,

    You ought to have the email right now. But you can write down the detail instructions about local cubes here at msdn if you want to. Thanks again for you help.

    Tuesday, February 14, 2012

    Creating Database

    I have a question that I am hoping someone can answer. Is it possible to
    link external sources to a database? What I am wondering is, that if I am
    creating a music database for CDs, can I program it so that the database
    will collect data from something like Windows Media Player or an external
    website? Now I would be doing this with SQL 2005. Any help or thoughts
    about this would be appreciated.
    Michael R. Mastro IIAre you talking about , consuming feeds or saving web pages?
    If so , it's definately possible to consume feeds . Where it gets a bit more
    interesting , i sif you are doing loads of string manipulations on the fly
    to isolate the information you need. You may be better off , doing all the
    getURL in Java or .Net , and then storing all relevant information in the db
    Jack Vamvas
    ___________________________________
    Advertise your IT vacancies for free at - http://www.ITjobfeed.com
    "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >I have a question that I am hoping someone can answer. Is it possible to
    >link external sources to a database? What I am wondering is, that if I am
    >creating a music database for CDs, can I program it so that the database
    >will collect data from something like Windows Media Player or an external
    >website? Now I would be doing this with SQL 2005. Any help or thoughts
    >about this would be appreciated.
    > Michael R. Mastro II
    >|||I would say probably consuming feeds. What I am actually trying to do is,
    say I stick a CD in the computer. It brings up Media Player or whatever
    program, maybe Musicmatch, but the point is, the program brings up all
    relevant information about that said CD. What I want to do is take that
    information from the program and store it in SQL 2005.
    Michael R. Mastro II
    "Jack Vamvas" <DEL_TO_REPLY@.del.com> wrote in message
    news:NL-dnUT3PrImMmbYnZ2dnUVZ8qminZ2d@.bt.com...
    > Are you talking about , consuming feeds or saving web pages?
    > If so , it's definately possible to consume feeds . Where it gets a bit
    > more interesting , i sif you are doing loads of string manipulations on
    > the fly to isolate the information you need. You may be better off , doing
    > all the getURL in Java or .Net , and then storing all relevant information
    > in the db
    > --
    > Jack Vamvas
    > ___________________________________
    > Advertise your IT vacancies for free at - http://www.ITjobfeed.com
    >
    > "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    > news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >|||"Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >I have a question that I am hoping someone can answer. Is it possible to
    >link external sources to a database? What I am wondering is, that if I am
    >creating a music database for CDs, can I program it so that the database
    >will collect data from something like Windows Media Player or an external
    >website? Now I would be doing this with SQL 2005. Any help or thoughts
    >about this would be appreciated.
    >
    Well a database is just that, a database. It really doesn't "collect data".
    For that you need a separate app between the database itself and the one you
    want to collect data from.
    Having said that, what you want to do shouldn't be all that hard with some
    programming.

    > Michael R. Mastro II
    >
    Greg Moore
    SQL Server DBA Consulting
    Email: sql (at) greenms.com http://www.greenms.com|||So what parameters would you need to set within the database to program it
    in such a way?
    Michael R. Mastro II
    "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
    news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    > "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    > news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    > Well a database is just that, a database. It really doesn't "collect
    > data". For that you need a separate app between the database itself and
    > the one you want to collect data from.
    > Having said that, what you want to do shouldn't be all that hard with some
    > programming.
    >
    >
    > --
    > Greg Moore
    > SQL Server DBA Consulting
    > Email: sql (at) greenms.com http://www.greenms.com
    >|||Hi,
    One way is to write a program that runs as a services and monitor for
    windows media player. What I do not know is, weather it is possible to read
    the data that is loaded into windows media player. If that is possible then
    your program can take that data and update the SQL server.
    Regards,
    Kueh
    "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23pm$8DWaHHA.4888@.TK2MSFTNGP06.phx.gbl...
    > So what parameters would you need to set within the database to program it
    > in such a way?
    > Michael R. Mastro II
    > "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
    > message news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    >|||"Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23pm$8DWaHHA.4888@.TK2MSFTNGP06.phx.gbl...
    > So what parameters would you need to set within the database to program it
    > in such a way?
    >
    I don't think anyone else replied either.
    It's not a matter of setting parameters within the database.
    Select your language and write the program in that. Could be perl, VB, C#,
    etc.
    The database is simply a repository for the data in this case.

    > Michael R. Mastro II
    > "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
    > message news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    >
    Greg Moore
    SQL Server DBA Consulting Remote and Onsite available!
    Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html

    Creating Database

    I have a question that I am hoping someone can answer. Is it possible to
    link external sources to a database? What I am wondering is, that if I am
    creating a music database for CDs, can I program it so that the database
    will collect data from something like Windows Media Player or an external
    website? Now I would be doing this with SQL 2005. Any help or thoughts
    about this would be appreciated.
    Michael R. Mastro II
    Are you talking about , consuming feeds or saving web pages?
    If so , it's definately possible to consume feeds . Where it gets a bit more
    interesting , i sif you are doing loads of string manipulations on the fly
    to isolate the information you need. You may be better off , doing all the
    getURL in Java or .Net , and then storing all relevant information in the db
    Jack Vamvas
    ___________________________________
    Advertise your IT vacancies for free at - http://www.ITjobfeed.com
    "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >I have a question that I am hoping someone can answer. Is it possible to
    >link external sources to a database? What I am wondering is, that if I am
    >creating a music database for CDs, can I program it so that the database
    >will collect data from something like Windows Media Player or an external
    >website? Now I would be doing this with SQL 2005. Any help or thoughts
    >about this would be appreciated.
    > Michael R. Mastro II
    >
    |||I would say probably consuming feeds. What I am actually trying to do is,
    say I stick a CD in the computer. It brings up Media Player or whatever
    program, maybe Musicmatch, but the point is, the program brings up all
    relevant information about that said CD. What I want to do is take that
    information from the program and store it in SQL 2005.
    Michael R. Mastro II
    "Jack Vamvas" <DEL_TO_REPLY@.del.com> wrote in message
    news:NL-dnUT3PrImMmbYnZ2dnUVZ8qminZ2d@.bt.com...
    > Are you talking about , consuming feeds or saving web pages?
    > If so , it's definately possible to consume feeds . Where it gets a bit
    > more interesting , i sif you are doing loads of string manipulations on
    > the fly to isolate the information you need. You may be better off , doing
    > all the getURL in Java or .Net , and then storing all relevant information
    > in the db
    > --
    > Jack Vamvas
    > ___________________________________
    > Advertise your IT vacancies for free at - http://www.ITjobfeed.com
    >
    > "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    > news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >
    |||"Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >I have a question that I am hoping someone can answer. Is it possible to
    >link external sources to a database? What I am wondering is, that if I am
    >creating a music database for CDs, can I program it so that the database
    >will collect data from something like Windows Media Player or an external
    >website? Now I would be doing this with SQL 2005. Any help or thoughts
    >about this would be appreciated.
    >
    Well a database is just that, a database. It really doesn't "collect data".
    For that you need a separate app between the database itself and the one you
    want to collect data from.
    Having said that, what you want to do shouldn't be all that hard with some
    programming.

    > Michael R. Mastro II
    >
    Greg Moore
    SQL Server DBA Consulting
    Email: sql (at) greenms.com http://www.greenms.com
    |||So what parameters would you need to set within the database to program it
    in such a way?
    Michael R. Mastro II
    "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
    news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    > "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    > news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    > Well a database is just that, a database. It really doesn't "collect
    > data". For that you need a separate app between the database itself and
    > the one you want to collect data from.
    > Having said that, what you want to do shouldn't be all that hard with some
    > programming.
    >
    >
    > --
    > Greg Moore
    > SQL Server DBA Consulting
    > Email: sql (at) greenms.com http://www.greenms.com
    >
    |||Hi,
    One way is to write a program that runs as a services and monitor for
    windows media player. What I do not know is, weather it is possible to read
    the data that is loaded into windows media player. If that is possible then
    your program can take that data and update the SQL server.
    Regards,
    Kueh
    "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23pm$8DWaHHA.4888@.TK2MSFTNGP06.phx.gbl...
    > So what parameters would you need to set within the database to program it
    > in such a way?
    > Michael R. Mastro II
    > "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
    > message news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    >
    |||"Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23pm$8DWaHHA.4888@.TK2MSFTNGP06.phx.gbl...
    > So what parameters would you need to set within the database to program it
    > in such a way?
    >
    I don't think anyone else replied either.
    It's not a matter of setting parameters within the database.
    Select your language and write the program in that. Could be perl, VB, C#,
    etc.
    The database is simply a repository for the data in this case.

    > Michael R. Mastro II
    > "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
    > message news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    >
    Greg Moore
    SQL Server DBA Consulting Remote and Onsite available!
    Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html

    Creating Database

    I have a question that I am hoping someone can answer. Is it possible to
    link external sources to a database? What I am wondering is, that if I am
    creating a music database for CDs, can I program it so that the database
    will collect data from something like Windows Media Player or an external
    website? Now I would be doing this with SQL 2005. Any help or thoughts
    about this would be appreciated.
    Michael R. Mastro IIAre you talking about , consuming feeds or saving web pages?
    If so , it's definately possible to consume feeds . Where it gets a bit more
    interesting , i sif you are doing loads of string manipulations on the fly
    to isolate the information you need. You may be better off , doing all the
    getURL in Java or .Net , and then storing all relevant information in the db
    --
    Jack Vamvas
    ___________________________________
    Advertise your IT vacancies for free at - http://www.ITjobfeed.com
    "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >I have a question that I am hoping someone can answer. Is it possible to
    >link external sources to a database? What I am wondering is, that if I am
    >creating a music database for CDs, can I program it so that the database
    >will collect data from something like Windows Media Player or an external
    >website? Now I would be doing this with SQL 2005. Any help or thoughts
    >about this would be appreciated.
    > Michael R. Mastro II
    >|||I would say probably consuming feeds. What I am actually trying to do is,
    say I stick a CD in the computer. It brings up Media Player or whatever
    program, maybe Musicmatch, but the point is, the program brings up all
    relevant information about that said CD. What I want to do is take that
    information from the program and store it in SQL 2005.
    Michael R. Mastro II
    "Jack Vamvas" <DEL_TO_REPLY@.del.com> wrote in message
    news:NL-dnUT3PrImMmbYnZ2dnUVZ8qminZ2d@.bt.com...
    > Are you talking about , consuming feeds or saving web pages?
    > If so , it's definately possible to consume feeds . Where it gets a bit
    > more interesting , i sif you are doing loads of string manipulations on
    > the fly to isolate the information you need. You may be better off , doing
    > all the getURL in Java or .Net , and then storing all relevant information
    > in the db
    > --
    > Jack Vamvas
    > ___________________________________
    > Advertise your IT vacancies for free at - http://www.ITjobfeed.com
    >
    > "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    > news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >>I have a question that I am hoping someone can answer. Is it possible to
    >>link external sources to a database? What I am wondering is, that if I am
    >>creating a music database for CDs, can I program it so that the database
    >>will collect data from something like Windows Media Player or an external
    >>website? Now I would be doing this with SQL 2005. Any help or thoughts
    >>about this would be appreciated.
    >> Michael R. Mastro II
    >|||"Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >I have a question that I am hoping someone can answer. Is it possible to
    >link external sources to a database? What I am wondering is, that if I am
    >creating a music database for CDs, can I program it so that the database
    >will collect data from something like Windows Media Player or an external
    >website? Now I would be doing this with SQL 2005. Any help or thoughts
    >about this would be appreciated.
    >
    Well a database is just that, a database. It really doesn't "collect data".
    For that you need a separate app between the database itself and the one you
    want to collect data from.
    Having said that, what you want to do shouldn't be all that hard with some
    programming.
    > Michael R. Mastro II
    >
    Greg Moore
    SQL Server DBA Consulting
    Email: sql (at) greenms.com http://www.greenms.com|||So what parameters would you need to set within the database to program it
    in such a way?
    Michael R. Mastro II
    "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
    news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    > "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    > news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >>I have a question that I am hoping someone can answer. Is it possible to
    >>link external sources to a database? What I am wondering is, that if I am
    >>creating a music database for CDs, can I program it so that the database
    >>will collect data from something like Windows Media Player or an external
    >>website? Now I would be doing this with SQL 2005. Any help or thoughts
    >>about this would be appreciated.
    > Well a database is just that, a database. It really doesn't "collect
    > data". For that you need a separate app between the database itself and
    > the one you want to collect data from.
    > Having said that, what you want to do shouldn't be all that hard with some
    > programming.
    >
    >> Michael R. Mastro II
    >
    > --
    > Greg Moore
    > SQL Server DBA Consulting
    > Email: sql (at) greenms.com http://www.greenms.com
    >|||Hi,
    One way is to write a program that runs as a services and monitor for
    windows media player. What I do not know is, weather it is possible to read
    the data that is loaded into windows media player. If that is possible then
    your program can take that data and update the SQL server.
    Regards,
    Kueh
    "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23pm$8DWaHHA.4888@.TK2MSFTNGP06.phx.gbl...
    > So what parameters would you need to set within the database to program it
    > in such a way?
    > Michael R. Mastro II
    > "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
    > message news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    >> "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    >> news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >>I have a question that I am hoping someone can answer. Is it possible to
    >>link external sources to a database? What I am wondering is, that if I
    >>am creating a music database for CDs, can I program it so that the
    >>database will collect data from something like Windows Media Player or an
    >>external website? Now I would be doing this with SQL 2005. Any help or
    >>thoughts about this would be appreciated.
    >>
    >> Well a database is just that, a database. It really doesn't "collect
    >> data". For that you need a separate app between the database itself and
    >> the one you want to collect data from.
    >> Having said that, what you want to do shouldn't be all that hard with
    >> some programming.
    >>
    >> Michael R. Mastro II
    >>
    >>
    >> --
    >> Greg Moore
    >> SQL Server DBA Consulting
    >> Email: sql (at) greenms.com http://www.greenms.com
    >>
    >|||"Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    news:%23pm$8DWaHHA.4888@.TK2MSFTNGP06.phx.gbl...
    > So what parameters would you need to set within the database to program it
    > in such a way?
    >
    I don't think anyone else replied either.
    It's not a matter of setting parameters within the database.
    Select your language and write the program in that. Could be perl, VB, C#,
    etc.
    The database is simply a repository for the data in this case.
    > Michael R. Mastro II
    > "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
    > message news:uFgBlMNaHHA.596@.TK2MSFTNGP06.phx.gbl...
    >> "Michael Mastro" <MikeRM2XXX@.worldnet.att.net> wrote in message
    >> news:%23MYHZiCaHHA.5044@.TK2MSFTNGP05.phx.gbl...
    >>I have a question that I am hoping someone can answer. Is it possible to
    >>link external sources to a database? What I am wondering is, that if I
    >>am creating a music database for CDs, can I program it so that the
    >>database will collect data from something like Windows Media Player or an
    >>external website? Now I would be doing this with SQL 2005. Any help or
    >>thoughts about this would be appreciated.
    >>
    >> Well a database is just that, a database. It really doesn't "collect
    >> data". For that you need a separate app between the database itself and
    >> the one you want to collect data from.
    >> Having said that, what you want to do shouldn't be all that hard with
    >> some programming.
    >>
    >> Michael R. Mastro II
    >>
    >>
    >> --
    >> Greg Moore
    >> SQL Server DBA Consulting
    >> Email: sql (at) greenms.com http://www.greenms.com
    >>
    >
    --
    Greg Moore
    SQL Server DBA Consulting Remote and Onsite available!
    Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html

    Creating Data Sources (ODBC) via code

    Hi
    I need to create a User DSN based on SQL Server driver under Data Sources
    (ODBC). As I need to do it on multiple PCs, is there a script or another
    automated way to do this quickly?
    Thanks
    RegardsHi John,
    This looks good:
    http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1110.mspx
    For remote PC's you will need to use a UNC path and run the script with an
    account that is also valid administrative account on your remote PC's.
    CreateWindow
    http://justldap.com
    "John" <John@.nospam.infovis.co.uk> wrote in message
    news:Oc0bPegiHHA.680@.TK2MSFTNGP06.phx.gbl...
    > Hi
    > I need to create a User DSN based on SQL Server driver under Data Sources
    > (ODBC). As I need to do it on multiple PCs, is there a script or another
    > automated way to do this quickly?
    > Thanks
    > Regards
    >|||Hi
    Many Thanks. Looks good. Just one thing, how do I add the username and
    password for SQL Server authentication?
    Thanks again
    Regards
    Const HKEY_LOCAL_MACHINE = &H80000002
    strComputer = "."
    Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
    strKeyPath = "SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources"
    strValueName = "My SQL Server"
    strValue = "SQL Server"
    objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    strKeyPath = "SOFTWARE\ODBC\ODBC.INI\My SQL Server"
    objReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
    strKeyPath = "SOFTWARE\ODBC\ODBC.INI\My SQL Server"
    strValueName = "Database"
    strValue = "My Database"
    objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    strValueName = "Driver"
    strValue = "C:\WINDOWS\System32\SQLSRV32.dll"
    objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    strValueName = "Server"
    strValue = "111.111.111.111"
    objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    strValueName = "Trusted_Connection"
    strValue = "No"
    objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    "CreateWindow" <createwindow@.gmail.com> wrote in message
    news:MbadnZsaYPcSmqnbnZ2dneKdnZydnZ2d@.giganews.com...
    > Hi John,
    > This looks good:
    > http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1110.mspx
    > For remote PC's you will need to use a UNC path and run the script with an
    > account that is also valid administrative account on your remote PC's.
    > CreateWindow
    > http://justldap.com
    >
    >
    > "John" <John@.nospam.infovis.co.uk> wrote in message
    > news:Oc0bPegiHHA.680@.TK2MSFTNGP06.phx.gbl...
    >> Hi
    >> I need to create a User DSN based on SQL Server driver under Data Sources
    >> (ODBC). As I need to do it on multiple PCs, is there a script or another
    >> automated way to do this quickly?
    >> Thanks
    >> Regards
    >>
    >|||You can use Reg_Sz string for "LastUser" but you can't store the password in
    the registry.
    --
    Regards,
    Dave Patrick ...Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect
    "John" wrote:
    > Hi
    > Many Thanks. Looks good. Just one thing, how do I add the username and
    > password for SQL Server authentication?
    > Thanks again
    > Regards
    >
    > Const HKEY_LOCAL_MACHINE = &H80000002
    > strComputer = "."
    > Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    > strComputer & "\root\default:StdRegProv")
    > strKeyPath = "SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources"
    > strValueName = "My SQL Server"
    > strValue = "SQL Server"
    > objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    > strKeyPath = "SOFTWARE\ODBC\ODBC.INI\My SQL Server"
    > objReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
    > strKeyPath = "SOFTWARE\ODBC\ODBC.INI\My SQL Server"
    > strValueName = "Database"
    > strValue = "My Database"
    > objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    > strValueName = "Driver"
    > strValue = "C:\WINDOWS\System32\SQLSRV32.dll"
    > objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    > strValueName = "Server"
    > strValue = "111.111.111.111"
    > objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    > strValueName = "Trusted_Connection"
    > strValue = "No"
    > objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
    >
    > "CreateWindow" <createwindow@.gmail.com> wrote in message
    > news:MbadnZsaYPcSmqnbnZ2dneKdnZydnZ2d@.giganews.com...
    >> Hi John,
    >> This looks good:
    >> http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1110.mspx
    >> For remote PC's you will need to use a UNC path and run the script with
    >> an account that is also valid administrative account on your remote PC's.
    >> CreateWindow
    >> http://justldap.com
    >>
    >>
    >> "John" <John@.nospam.infovis.co.uk> wrote in message
    >> news:Oc0bPegiHHA.680@.TK2MSFTNGP06.phx.gbl...
    >> Hi
    >> I need to create a User DSN based on SQL Server driver under Data
    >> Sources (ODBC). As I need to do it on multiple PCs, is there a script or
    >> another automated way to do this quickly?
    >> Thanks
    >> Regards
    >>
    >>
    >