<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Database Journal Forums</title>
		<link>http://forums.databasejournal.com/</link>
		<description>Discuss all things related to the world of databases at the active Database Journal community. Forum topics include news, database design, ASP, MS Access, SQL and more.</description>
		<language>en</language>
		<lastBuildDate>Sun, 19 May 2013 02:59:36 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.databasejournal.com/images/misc/rss.png</url>
			<title>Database Journal Forums</title>
			<link>http://forums.databasejournal.com/</link>
		</image>
		<item>
			<title><![CDATA["JOIN OPERATION NOT SUPPORTED" Please Correct this query if possible]]></title>
			<link>http://forums.databasejournal.com/showthread.php?53689-quot-JOIN-OPERATION-NOT-SUPPORTED-quot-Please-Correct-this-query-if-possible&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 21:16:35 GMT</pubDate>
			<description><![CDATA[MY CODE (Im using MS Access 2000 with JET Database engine)

    SELECT Members.First_Name + ' ' + Members.Last_Name AS Member,
           iif(NULL,Friends.My_E_Mail, Friends.Friend_E_Mail) AS E_Mail, 
           Members.First_Name AS Name 
    FROM ((Members 
           LEFT OUTER JOIN Friends 
                ON Members.E_Mail = Friends.My_E_Mail 
                AND Friends.Friend_E_Mail = ?) 
           LEFT OUTER JOIN Friends Friends_1 
                ON Members.E_Mail = Friends.Friend_E_Mail 
                AND Friends.My_E_Mail = ?)

My Tables
    Members(all VARCHAR)     SOME DATA
    First_Name               Alester Jude Carl Jones
    Last_Name                A       B    C    J
    
    FRIENDS(ALL VARCHAR)
    My_E_Mail               Alester@lam.com Alester@lam.com  Alester@lam.com
    Friend_E_Mail           jude@lam.com    carl@lam.com   jones@lam.com

   ***NOTE Friends Table ALLOWS duplicates so jude can be on my_E_Mail but CAN NOT add alester because they are already friends.


Desired Output if ("?" in above query is: jones@lam.com)

    +--------------+-----------+------------+
    |Member        |E_Mail     |  Name      |
    +---------------------------------------+
     Alester A   Alester@lam.com  Alester




Desired Output if("?" in above query is: Alester@lam.com)

    +--------------+-----------+------------+
    |Member        |E_Mail     |  Name      |
    +---------------------------------------+
     Jude B        jude@lam.com  Jude
     carl C        carl@lam.com  Carl
     Jones J       jones@lam.com Jones

PS the "?" are query string parameters that im passing in the "?" i know that works fine. 
 

MY QUESTION IS : I keep getting this error "Join Expression not Supported" 

Is there a workaround query I can use without using a stored procedure or using multiple queries since this needs to be ONE SINGLE QUERY!?

THANK YOU!]]></description>
			<content:encoded><![CDATA[<div>MY CODE (Im using MS Access 2000 with JET Database engine)<br />
<br />
    SELECT Members.First_Name + ' ' + Members.Last_Name AS Member,<br />
           iif(NULL,Friends.My_E_Mail, Friends.Friend_E_Mail) AS E_Mail, <br />
           Members.First_Name AS Name <br />
    FROM ((Members <br />
           LEFT OUTER JOIN Friends <br />
                ON Members.E_Mail = Friends.My_E_Mail <br />
                AND Friends.Friend_E_Mail = ?) <br />
           LEFT OUTER JOIN Friends Friends_1 <br />
                ON Members.E_Mail = Friends.Friend_E_Mail <br />
                AND Friends.My_E_Mail = ?)<br />
<br />
My Tables<br />
    Members(all VARCHAR)     SOME DATA<br />
    First_Name               Alester Jude Carl Jones<br />
    Last_Name                A       B    C    J<br />
    <br />
    FRIENDS(ALL VARCHAR)<br />
    My_E_Mail               Alester@lam.com Alester@lam.com  Alester@lam.com<br />
    Friend_E_Mail           jude@lam.com    carl@lam.com   jones@lam.com<br />
<br />
   ***NOTE Friends Table ALLOWS duplicates so jude can be on my_E_Mail but CAN NOT add alester because they are already friends.<br />
<br />
<br />
Desired Output if (&quot;?&quot; in above query is: jones@lam.com)<br />
<br />
    +--------------+-----------+------------+<br />
    |Member        |E_Mail     |  Name      |<br />
    +---------------------------------------+<br />
     Alester A   Alester@lam.com  Alester<br />
<br />
<br />
<br />
<br />
Desired Output if(&quot;?&quot; in above query is: Alester@lam.com)<br />
<br />
    +--------------+-----------+------------+<br />
    |Member        |E_Mail     |  Name      |<br />
    +---------------------------------------+<br />
     Jude B        jude@lam.com  Jude<br />
     carl C        carl@lam.com  Carl<br />
     Jones J       jones@lam.com Jones<br />
<br />
PS the &quot;?&quot; are query string parameters that im passing in the &quot;?&quot; i know that works fine. <br />
 <br />
<br />
MY QUESTION IS : I keep getting this error &quot;Join Expression not Supported&quot; <br />
<br />
Is there a workaround query I can use without using a stored procedure or using multiple queries since this needs to be ONE SINGLE QUERY!?<br />
<br />
THANK YOU!</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?7-Microsoft-Access">Microsoft Access</category>
			<dc:creator>jesusw00t</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53689-quot-JOIN-OPERATION-NOT-SUPPORTED-quot-Please-Correct-this-query-if-possible</guid>
		</item>
		<item>
			<title>Permission by department manager from single report to view.</title>
			<link>http://forums.databasejournal.com/showthread.php?53687-Permission-by-department-manager-from-single-report-to-view.&amp;goto=newpost</link>
			<pubDate>Sun, 12 May 2013 03:51:29 GMT</pubDate>
			<description><![CDATA[Hello,

We are using SSRS 2005 and I have a report I want to give access to 5 different managers the report will be in a separate folders by department this report is a budget report. I don't want to change the sql query for each department individually and copy into the respective folders  I would have ssrs 2005  recognize the department by folder and only give the data to the respective department manager.  Is this possible?]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
We are using SSRS 2005 and I have a report I want to give access to 5 different managers the report will be in a separate folders by department this report is a budget report. I don't want to change the sql query for each department individually and copy into the respective folders  I would have ssrs 2005  recognize the department by folder and only give the data to the respective department manager.  Is this possible?</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?35-Reporting-Services">Reporting Services</category>
			<dc:creator>donalejandro</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53687-Permission-by-department-manager-from-single-report-to-view.</guid>
		</item>
		<item>
			<title>Illegal reference to correlation name</title>
			<link>http://forums.databasejournal.com/showthread.php?53685-Illegal-reference-to-correlation-name&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 16:20:24 GMT</pubDate>
			<description><![CDATA[I don't know Sybase very well, I'm much more familiar with MySQL. I get the error "Illegal reference to correlation name 'edef'", but I don't know why or how to fix it. Here is my SQL statement. Please help!


Code:
---------
/*
gets employee clock in/clock out times and total hours
*/

select
    edef.emp_seq,
    edef.obj_num,
    edef.payroll_id,
    edef.last_name,
    edef.first_name,

    dtl.clk_in_date_tm,
    dtl.clk_out_date_tm,
    dtl.reg_hrs,

    ot.order_type_seq,
    otdef.name
from
    MICROS.emp_def edef,

    MICROS.time_card_dtl as dtl

left join 
(
    select
        MICROS.shift_emp_ot_ttl.emp_seq,
        MICROS.shift_emp_ot_ttl.order_type_seq
    from
        MICROS.shift_emp_ot_ttl
)ot on ot.emp_seq = edef.emp_seq
left join
(
    select
        micros.order_type_def.order_type_seq,
        micros.order_type_def.name
    from
        micros.order_type_def
)otdef on otdef.order_type_seq = ot.order_type_seq
where
    edef.emp_seq = dtl.emp_seq
    and 
    dtl.clk_in_date_tm between '2013-05-06 00:07:00' and '2013-05-07 00:04:00'
order by
edef.last_name
---------
]]></description>
			<content:encoded><![CDATA[<div>I don't know Sybase very well, I'm much more familiar with MySQL. I get the error &quot;Illegal reference to correlation name 'edef'&quot;, but I don't know why or how to fix it. Here is my SQL statement. Please help!<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">/*<br />
gets employee clock in/clock out times and total hours<br />
*/<br />
<br />
select<br />
&nbsp; &nbsp; edef.emp_seq,<br />
&nbsp; &nbsp; edef.obj_num,<br />
&nbsp; &nbsp; edef.payroll_id,<br />
&nbsp; &nbsp; edef.last_name,<br />
&nbsp; &nbsp; edef.first_name,<br />
<br />
&nbsp; &nbsp; dtl.clk_in_date_tm,<br />
&nbsp; &nbsp; dtl.clk_out_date_tm,<br />
&nbsp; &nbsp; dtl.reg_hrs,<br />
<br />
&nbsp; &nbsp; ot.order_type_seq,<br />
&nbsp; &nbsp; otdef.name<br />
from<br />
&nbsp; &nbsp; MICROS.emp_def edef,<br />
<br />
&nbsp; &nbsp; MICROS.time_card_dtl as dtl<br />
<br />
left join <br />
(<br />
&nbsp; &nbsp; select<br />
&nbsp; &nbsp; &nbsp; &nbsp; MICROS.shift_emp_ot_ttl.emp_seq,<br />
&nbsp; &nbsp; &nbsp; &nbsp; MICROS.shift_emp_ot_ttl.order_type_seq<br />
&nbsp; &nbsp; from<br />
&nbsp; &nbsp; &nbsp; &nbsp; MICROS.shift_emp_ot_ttl<br />
)ot on ot.emp_seq = edef.emp_seq<br />
left join<br />
(<br />
&nbsp; &nbsp; select<br />
&nbsp; &nbsp; &nbsp; &nbsp; micros.order_type_def.order_type_seq,<br />
&nbsp; &nbsp; &nbsp; &nbsp; micros.order_type_def.name<br />
&nbsp; &nbsp; from<br />
&nbsp; &nbsp; &nbsp; &nbsp; micros.order_type_def<br />
)otdef on otdef.order_type_seq = ot.order_type_seq<br />
where<br />
&nbsp; &nbsp; edef.emp_seq = dtl.emp_seq<br />
&nbsp; &nbsp; and <br />
&nbsp; &nbsp; dtl.clk_in_date_tm between '2013-05-06 00:07:00' and '2013-05-07 00:04:00'<br />
order by<br />
edef.last_name</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?29-Sybase">Sybase</category>
			<dc:creator>raphael75</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53685-Illegal-reference-to-correlation-name</guid>
		</item>
		<item>
			<title>Infopath form data import to Access</title>
			<link>http://forums.databasejournal.com/showthread.php?53683-Infopath-form-data-import-to-Access&amp;goto=newpost</link>
			<pubDate>Thu, 09 May 2013 23:22:08 GMT</pubDate>
			<description><![CDATA[Hi all,

I'm a newbie to this forum so greetings to all :)

I am trying to set up a quote system using an Infopath form which saves the quotes as an xml file, then I want to import the xml into Access in order to keep a track of them, provide reporting functions and also to have a mail merge with a Word doc to then save a pdf quote for the client.

I thought this would be a simple process and it is to a degree but I hit a snag when the xml imports the quote data into separate tables which ruins the mail merge for the word doc. The word doc merge can only be done with one table at a time. This being an important part of the process, I want to make sure the merge can work well.

Another problem is xml not being able to be linked in Access, which leads me to using Excel holding a link to the xml then using Access to hold another linked table to the Excel sheet. Is it me or does this seem silly? (I'm sure a lot of you could go on about this!). This is not an ideal set up but it seems to work ok apart from the element names being imported along with the xml data - "ns1:QuoteNumber" and "ns1:InternalExternal" and so on... Is there a way to avoid importing these element names into Excel?

Please also note that I am not a developer! I am using Office 2010 and am familiar with xml, html css etc... Would anyone have some suggestions? Am I on the right track?:confused:]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm a newbie to this forum so greetings to all :)<br />
<br />
I am trying to set up a quote system using an Infopath form which saves the quotes as an xml file, then I want to import the xml into Access in order to keep a track of them, provide reporting functions and also to have a mail merge with a Word doc to then save a pdf quote for the client.<br />
<br />
I thought this would be a simple process and it is to a degree but I hit a snag when the xml imports the quote data into separate tables which ruins the mail merge for the word doc. The word doc merge can only be done with one table at a time. This being an important part of the process, I want to make sure the merge can work well.<br />
<br />
Another problem is xml not being able to be linked in Access, which leads me to using Excel holding a link to the xml then using Access to hold another linked table to the Excel sheet. Is it me or does this seem silly? (I'm sure a lot of you could go on about this!). This is not an ideal set up but it seems to work ok apart from the element names being imported along with the xml data - &quot;ns1:QuoteNumber&quot; and &quot;ns1:InternalExternal&quot; and so on... Is there a way to avoid importing these element names into Excel?<br />
<br />
Please also note that I am not a developer! I am using Office 2010 and am familiar with xml, html css etc... Would anyone have some suggestions? Am I on the right track?:confused:</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?7-Microsoft-Access">Microsoft Access</category>
			<dc:creator>Zubanoid</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53683-Infopath-form-data-import-to-Access</guid>
		</item>
		<item>
			<title>What problem is First Normal Form intended to solve?</title>
			<link>http://forums.databasejournal.com/showthread.php?53681-What-problem-is-First-Normal-Form-intended-to-solve&amp;goto=newpost</link>
			<pubDate>Wed, 08 May 2013 01:28:12 GMT</pubDate>
			<description><![CDATA[In most database design books and articles, a department table (e.g.) that has columns named employee1, employee2, employee3, etc., is said to not be in 1NF.

However, if you read statements of what 1NF is (e.g., Wikipedia article, Chris Date's paper titled "What First Normal Form Really Means," Codd's articles), you will find that 1NF is concerned ONLY with a single column. Some formulations also say that one must not repeat an attribute, but that's impossible in the relational model and in all of the RDBMSes I'm familiar with.

In fact, Chris Date goes so far as to say that no relational database can have a relation that violates 1NF. It is like the sign on an elevator that says: "Out of order. Do not use."

I have come up with an alternative rule that specifically addresses the employee1, employee2, etc., problem. (What it says isn't relevant to this post.)

My question is this: Is my rule, assuming I've put it together well, an alternative to 1NF as the latter is usually expressed? In order to answer this question, I would need to know what problem 1NF was intended to solve. However, in reading the literature extensively, I have never seen this explained, except that in the Date paper I mentioned above he says that the problem it is intended to solve is the system not being relational. That's not what I was looking for.

I would think that if Codd, Date, etc., were concerned about the employee1, employee2, etc., problem, they would have said so. I suspect they were not, because such a table, however awkward, causes no consistency problems at all, and therefore probably is perfectly OK as far as relational database theory is concerned. (Its flaws are that the table definition needs to be altered whenever another employee is needed, and that the SQL becomes horrendous. I doubt that theoreticians would care about either of those very practical concerns.)

Comments? What problem is 1NF as formulated by the database gurus intended to solve?]]></description>
			<content:encoded><![CDATA[<div>In most database design books and articles, a department table (e.g.) that has columns named employee1, employee2, employee3, etc., is said to not be in 1NF.<br />
<br />
However, if you read statements of what 1NF is (e.g., Wikipedia article, Chris Date's paper titled &quot;What First Normal Form Really Means,&quot; Codd's articles), you will find that 1NF is concerned ONLY with a single column. Some formulations also say that one must not repeat an attribute, but that's impossible in the relational model and in all of the RDBMSes I'm familiar with.<br />
<br />
In fact, Chris Date goes so far as to say that no relational database can have a relation that violates 1NF. It is like the sign on an elevator that says: &quot;Out of order. Do not use.&quot;<br />
<br />
I have come up with an alternative rule that specifically addresses the employee1, employee2, etc., problem. (What it says isn't relevant to this post.)<br />
<br />
My question is this: Is my rule, assuming I've put it together well, an alternative to 1NF as the latter is usually expressed? In order to answer this question, I would need to know what problem 1NF was intended to solve. However, in reading the literature extensively, I have never seen this explained, except that in the Date paper I mentioned above he says that the problem it is intended to solve is the system not being relational. That's not what I was looking for.<br />
<br />
I would think that if Codd, Date, etc., were concerned about the employee1, employee2, etc., problem, they would have said so. I suspect they were not, because such a table, however awkward, causes no consistency problems at all, and therefore probably is perfectly OK as far as relational database theory is concerned. (Its flaws are that the table definition needs to be altered whenever another employee is needed, and that the SQL becomes horrendous. I doubt that theoreticians would care about either of those very practical concerns.)<br />
<br />
Comments? What problem is 1NF as formulated by the database gurus intended to solve?</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?27-Database-Design">Database Design</category>
			<dc:creator>Marc Rochkind</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53681-What-problem-is-First-Normal-Form-intended-to-solve</guid>
		</item>
		<item>
			<title>Easy Database Manager</title>
			<link>http://forums.databasejournal.com/showthread.php?53679-Easy-Database-Manager&amp;goto=newpost</link>
			<pubDate>Tue, 07 May 2013 23:05:20 GMT</pubDate>
			<description><![CDATA[I'm currently using Access 2010.
I want to try something different database but not sure where to look.
I want a db manager that requires very little coding. Something that utilizes wizards.
I don't want anything very expensive. Able to import access data
My access database consist of a backend for the data a front end for the objects.

Thanks,
James]]></description>
			<content:encoded><![CDATA[<div>I'm currently using Access 2010.<br />
I want to try something different database but not sure where to look.<br />
I want a db manager that requires very little coding. Something that utilizes wizards.<br />
I don't want anything very expensive. Able to import access data<br />
My access database consist of a backend for the data a front end for the objects.<br />
<br />
Thanks,<br />
James</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?45-General-Database-Discussions">General Database Discussions</category>
			<dc:creator>JamesJoey</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53679-Easy-Database-Manager</guid>
		</item>
		<item>
			<title>how to make this query?</title>
			<link>http://forums.databasejournal.com/showthread.php?53677-how-to-make-this-query&amp;goto=newpost</link>
			<pubDate>Sun, 05 May 2013 20:24:01 GMT</pubDate>
			<description><![CDATA[Hello all,

I have the following table:

create table Sale(
	bankname			char(8)		null,
	controlename	        char(10)     	not null,
	creditcardnummer	        numeric(19)      	null,
	username         		char(10)	        not null,
	accountnummer		numeric(7)   	null, 
	constraint pk_username primary key(username)
)

I want to make a case/trigger where the following happens:
If the word "Creditcard" has been inserted in controlename then creditnummer must contain numbers else it will be NULL.]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
I have the following table:<br />
<br />
create table Sale(<br />
	bankname			char(8)		null,<br />
	controlename	        char(10)     	not null,<br />
	creditcardnummer	        numeric(19)      	null,<br />
	username         		char(10)	        not null,<br />
	accountnummer		numeric(7)   	null, <br />
	constraint pk_username primary key(username)<br />
)<br />
<br />
I want to make a case/trigger where the following happens:<br />
If the word &quot;Creditcard&quot; has been inserted in controlename then creditnummer must contain numbers else it will be NULL.</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?13-Structured-Query-Language-(SQL)">Structured Query Language (SQL)</category>
			<dc:creator>Swirl</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53677-how-to-make-this-query</guid>
		</item>
		<item>
			<title>Network Databases</title>
			<link>http://forums.databasejournal.com/showthread.php?53675-Network-Databases&amp;goto=newpost</link>
			<pubDate>Sun, 05 May 2013 00:34:33 GMT</pubDate>
			<description>I am doing research into network (i.e. IDMS-type) databases. Are there any free/open source network databases for the Windows PC?

Thanks</description>
			<content:encoded><![CDATA[<div>I am doing research into network (i.e. IDMS-type) databases. Are there any free/open source network databases for the Windows PC?<br />
<br />
Thanks</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?45-General-Database-Discussions">General Database Discussions</category>
			<dc:creator>Paolo_R</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53675-Network-Databases</guid>
		</item>
		<item>
			<title>Master database sysusers all have the same sid?</title>
			<link>http://forums.databasejournal.com/showthread.php?53673-Master-database-sysusers-all-have-the-same-sid&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 23:08:06 GMT</pubDate>
			<description><![CDATA[Hi, I noticed that when I do a select * from sysusers in the master database they all show the same sid?

dbo 0x04EB1BD4B662E84EA2F014F4691D18E7
guest 0x04EB1BD4B662E84EA2F014F4691D18E7
BUILTIN\Administrators   0x04EB1BD4B662E84EA2F014F4691D18E7 

And so on...

Is there a way to correct this?  I'm not sure this is normal or not?

Thanks for your time.]]></description>
			<content:encoded><![CDATA[<div>Hi, I noticed that when I do a select * from sysusers in the master database they all show the same sid?<br />
<br />
dbo 0x04EB1BD4B662E84EA2F014F4691D18E7<br />
guest 0x04EB1BD4B662E84EA2F014F4691D18E7<br />
BUILTIN\Administrators   0x04EB1BD4B662E84EA2F014F4691D18E7 <br />
<br />
And so on...<br />
<br />
Is there a way to correct this?  I'm not sure this is normal or not?<br />
<br />
Thanks for your time.</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?23-MS-SQL-Server-7-MS-SQL-Server-2000">MS SQL Server 7/MS SQL Server 2000</category>
			<dc:creator>global</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53673-Master-database-sysusers-all-have-the-same-sid</guid>
		</item>
		<item>
			<title>Run SQL Script File from Access VBA</title>
			<link>http://forums.databasejournal.com/showthread.php?53671-Run-SQL-Script-File-from-Access-VBA&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 00:00:47 GMT</pubDate>
			<description>Hello all,

I would like to run a .SQL file from within MS ACCESS VBA. I have VBA code that moves data to a SQL Server database. I also have an advanced SQL Server script that creates GUIDS and places the data into another SQL Server database. Currently, I run the VBA Code in the Access Database and then open a MS SQL Server Management Console to run the .sql script. I would be great to run the .sql script within the Access VBA code.

Any advice with sample codes would be appreciated.

Thanks,</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
I would like to run a .SQL file from within MS ACCESS VBA. I have VBA code that moves data to a SQL Server database. I also have an advanced SQL Server script that creates GUIDS and places the data into another SQL Server database. Currently, I run the VBA Code in the Access Database and then open a MS SQL Server Management Console to run the .sql script. I would be great to run the .sql script within the Access VBA code.<br />
<br />
Any advice with sample codes would be appreciated.<br />
<br />
Thanks,</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?7-Microsoft-Access">Microsoft Access</category>
			<dc:creator>jcronce</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53671-Run-SQL-Script-File-from-Access-VBA</guid>
		</item>
		<item>
			<title>Addind days to a date excluding holidays and weekdays in MS Access</title>
			<link>http://forums.databasejournal.com/showthread.php?53669-Addind-days-to-a-date-excluding-holidays-and-weekdays-in-MS-Access&amp;goto=newpost</link>
			<pubDate>Mon, 29 Apr 2013 17:55:14 GMT</pubDate>
			<description><![CDATA[Hello Everyone,

I believe this question has been answered using NetWorkdays and fAddWorkDays  using a module called modWorkdays but I could not find the actual code referred to in the article.

I need to add 30 days to a date. If the date falls on a Saturday or Sunday I need the function to return the previous Friday. If it falls on a holiday (from a list in a table) it needs to return the day before the holiday. Could someone direct me to a function that could handle this?

Please be gentle, I'm new here... :)


Eva]]></description>
			<content:encoded><![CDATA[<div>Hello Everyone,<br />
<br />
I believe this question has been answered using NetWorkdays and fAddWorkDays  using a module called modWorkdays but I could not find the actual code referred to in the article.<br />
<br />
I need to add 30 days to a date. If the date falls on a Saturday or Sunday I need the function to return the previous Friday. If it falls on a holiday (from a list in a table) it needs to return the day before the holiday. Could someone direct me to a function that could handle this?<br />
<br />
Please be gentle, I'm new here... :)<br />
<br />
<br />
Eva</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?32-Ask-an-Expert">Ask an Expert</category>
			<dc:creator>Evangeline</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53669-Addind-days-to-a-date-excluding-holidays-and-weekdays-in-MS-Access</guid>
		</item>
		<item>
			<title>Microsoft Query + Excel + SQL + CHARINDEX</title>
			<link>http://forums.databasejournal.com/showthread.php?53667-Microsoft-Query-Excel-SQL-CHARINDEX&amp;goto=newpost</link>
			<pubDate>Mon, 29 Apr 2013 07:20:07 GMT</pubDate>
			<description><![CDATA[Is anyone able to tell me why I',m getting this message (See JPG below)

Attachment 647 (http://forums.databasejournal.com/attachment.php?attachmentid=647) 

It's occurring whilst trying to write an "CHARINDEX".

Steps taken:

Microsoft Excel
Data
From Other Sources
From Microsoft Query
Choose the database
Login
Choose the tables & columns
Output it to a table in Excel]]></description>
			<content:encoded><![CDATA[<div>Is anyone able to tell me why I',m getting this message (See JPG below)<br />
<br />
<a href="http://forums.databasejournal.com/attachment.php?attachmentid=647"  title="Name:  
Views: 
Size:  ">Attachment 647</a> <br />
<br />
It's occurring whilst trying to write an &quot;CHARINDEX&quot;.<br />
<br />
Steps taken:<br />
<br />
Microsoft Excel<br />
Data<br />
From Other Sources<br />
From Microsoft Query<br />
Choose the database<br />
Login<br />
Choose the tables &amp; columns<br />
Output it to a table in Excel</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="/jpg.gif" alt="File Type: jpg" />
	<a href="http://forums.databasejournal.com/attachment.php?attachmentid=647&amp;d=1367219887" target="_blank">charindex help.jpg&lrm;</a> 
(97.1 KB)
</li> 
			</ul>
			</fieldset>
	

	

	</div>
 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?47-Database-Lounge">Database Lounge</category>
			<dc:creator>BenJ</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53667-Microsoft-Query-Excel-SQL-CHARINDEX</guid>
		</item>
		<item>
			<title>finding unused tables using monitoring tables</title>
			<link>http://forums.databasejournal.com/showthread.php?53665-finding-unused-tables-using-monitoring-tables&amp;goto=newpost</link>
			<pubDate>Sun, 28 Apr 2013 09:03:43 GMT</pubDate>
			<description><![CDATA[Hello, 

This stored proc collects the information from the monopenobjectactivity table and saves the data in TablesUsed table.

CREATE PROCEDURE TablesUsed (
    @wait_time char(8)  = '00:10:00',
    @loop int = -10
    )
AS
BEGIN

SELECT * into #temp1
from  master..monOpenObjectActivity

SELECT * into #temp2
from  master..monOpenObjectActivity


INSERT INTO TablesUsed
(DBName,TableName,IndexID,Operations,RowsInserted,RowsDeleted,RowsUpdated,LockWaits,LogicalReads,PhysicalReads,UsedCount,LastUsedDate,FromDate,ToDate

SELECT db_name(U2.DBID),object_name(U2.ObjectID, U2.DBID),U2.IndexID,U2.Operations,U2.RowsInserted,U2.RowsDeleted,U2.RowsUpdated,U2.LockWaits,U2.LogicalReads,U2.PhysicalReads,(U1.UsedCount -U2.UsedCount),U2.LastUsedDate,dateadd (mi,@loop,getdate()),getdate()
from #temp1  U1 , #temp2 U2
where Object_name(U1.ObjectID,U1.DBID)=Object_name(U2.ObjectID,U2.DBID)
and db_name(U1.DBID)=db_name(U2.DBID)
and U1.IndexID=U2.IndexID
and U1.IndexID = 0

END
go

Above is the stored procedure which i wrote to monitor the monopenobjectactivity table. DBA will run this stored proc for about 2 months. then i am thinking to query the "TablesUsed" table to find the unused tables. below is the query 

select * from TablesUsed
where RowsInserted = 0 and RowsUpdated = 0 and RowsDeleted = 0 
order by LogicalReads asc 

My question is, can i consider this result where all the RowsInserted, RowsUpdated and RowsDeleted = 0's as unused tables in the database? 

when I am observing the resultset of this above query, i am observing that even though RowsInserted, Deleted or Updated are 0 but we have Operations , Logical and Physical reads on that table...so does it mean that the table is being used?

if so, can anyone please guide me, how to write the query to find the unused tables?

Thanks in advance.]]></description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
This stored proc collects the information from the monopenobjectactivity table and saves the data in TablesUsed table.<br />
<br />
CREATE PROCEDURE TablesUsed (<br />
    @wait_time char(8)  = '00:10:00',<br />
    @loop int = -10<br />
    )<br />
AS<br />
BEGIN<br />
<br />
SELECT * into #temp1<br />
from  master..monOpenObjectActivity<br />
<br />
SELECT * into #temp2<br />
from  master..monOpenObjectActivity<br />
<br />
<br />
INSERT INTO TablesUsed<br />
(DBName,TableName,IndexID,Operations,RowsInserted,  RowsDeleted,RowsUpdated,LockWaits,LogicalReads,Phy  sicalReads,UsedCount,LastUsedDate,FromDate,ToDate<br />
<br />
SELECT db_name(U2.DBID),object_name(U2.ObjectID, U2.DBID),U2.IndexID,U2.Operations,U2.RowsInserted,  U2.RowsDeleted,U2.RowsUpdated,U2.LockWaits,U2.Logi  calReads,U2.PhysicalReads,(U1.UsedCount -U2.UsedCount),U2.LastUsedDate,dateadd (mi,@loop,getdate()),getdate()<br />
from #temp1  U1 , #temp2 U2<br />
where Object_name(U1.ObjectID,U1.DBID)=Object_name(U2.Ob  jectID,U2.DBID)<br />
and db_name(U1.DBID)=db_name(U2.DBID)<br />
and U1.IndexID=U2.IndexID<br />
and U1.IndexID = 0<br />
<br />
END<br />
go<br />
<br />
Above is the stored procedure which i wrote to monitor the monopenobjectactivity table. DBA will run this stored proc for about 2 months. then i am thinking to query the &quot;TablesUsed&quot; table to find the unused tables. below is the query <br />
<br />
select * from TablesUsed<br />
where RowsInserted = 0 and RowsUpdated = 0 and RowsDeleted = 0 <br />
order by LogicalReads asc <br />
<br />
My question is, can i consider this result where all the RowsInserted, RowsUpdated and RowsDeleted = 0's as unused tables in the database? <br />
<br />
when I am observing the resultset of this above query, i am observing that even though RowsInserted, Deleted or Updated are 0 but we have Operations , Logical and Physical reads on that table...so does it mean that the table is being used?<br />
<br />
if so, can anyone please guide me, how to write the query to find the unused tables?<br />
<br />
Thanks in advance.</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?29-Sybase">Sybase</category>
			<dc:creator>sanandnas</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53665-finding-unused-tables-using-monitoring-tables</guid>
		</item>
		<item>
			<title>unused stored procedures using monitoring tables</title>
			<link>http://forums.databasejournal.com/showthread.php?53663-unused-stored-procedures-using-monitoring-tables&amp;goto=newpost</link>
			<pubDate>Sun, 28 Apr 2013 08:52:12 GMT</pubDate>
			<description><![CDATA[Hello Experts,  

can anyone please let me know, how to find the unused stored procedures using monitoring tables of master database in sybase. 

actually, i already wrote 2 different stored procedures using monitoring tables to find the unused indexes and tables using monopenObjectactivity table. and those stored procedures are running in production to capture the data for around 2 months and then later i will write a query on permanant table which i created as part of stored proc to save the historical data and get the unused objects and indexes.

In the same way i need to create the stored procedure to monitor the historical data for unused stored procedures in the server and monitor the stored procedures for 2 production releases and then if those stored procs are never used from past 4 to 5 months in production then i need to drop them. This is my task. 

can anyone please suggest me how do i write a stored procedure to monitor the unused stored procs and save the data to one permanant table and that should stored proc which i write dba's would schedule it to run on daily basis to gather the historical data. then i need to query the permanant table and list all the unused stored procedures. so that the developers would review them and decide whetther to really drop those stored procedure or not......

please experts, give me the query but please don't give me the links, as i have already googled and i'm unable to find a way...

http://www.sybase.com/sb_content/1027266/SybaseISUG_MDA-042406.pdf 

this above pdf has the query for analyzing the stored procedure performance queries...by considering these information

I thought the below query would give the list of unused stored procedures when i run in the production server. But i observed that, this query is only pulling the stored procedures which are only called by applications in production.

select object_name(ProcedureID,DBID), ProcName = isnull(object_name(ProcedureID, DBID), "UNKNOWN"),
DBName = isnull(db_name(DBID), "UNKNOWN"),SPID, CpuTime, LogicalReads, PhysicalReads, MemUsageKB, StartTime, EndTime
LineNumber,
ElapsedTime = datediff(ms, StartTime, EndTime), KPID, BatchID 
from master..monSysStatement
where ProcedureID != 0 and isnull(db_name(DBID), "UNKNOWN") not in ( 'sybsystemprocs ' , 'tempdb')

unable to figureout which monitoring table would help to know the unused stored procedures in the databases of productions server. can anyone please help me?

Thanks alot in advance.]]></description>
			<content:encoded><![CDATA[<div>Hello Experts,  <br />
<br />
can anyone please let me know, how to find the unused stored procedures using monitoring tables of master database in sybase. <br />
<br />
actually, i already wrote 2 different stored procedures using monitoring tables to find the unused indexes and tables using monopenObjectactivity table. and those stored procedures are running in production to capture the data for around 2 months and then later i will write a query on permanant table which i created as part of stored proc to save the historical data and get the unused objects and indexes.<br />
<br />
In the same way i need to create the stored procedure to monitor the historical data for unused stored procedures in the server and monitor the stored procedures for 2 production releases and then if those stored procs are never used from past 4 to 5 months in production then i need to drop them. This is my task. <br />
<br />
can anyone please suggest me how do i write a stored procedure to monitor the unused stored procs and save the data to one permanant table and that should stored proc which i write dba's would schedule it to run on daily basis to gather the historical data. then i need to query the permanant table and list all the unused stored procedures. so that the developers would review them and decide whetther to really drop those stored procedure or not......<br />
<br />
please experts, give me the query but please don't give me the links, as i have already googled and i'm unable to find a way...<br />
<br />
<a rel="nofollow" href="http://www.sybase.com/sb_content/1027266/SybaseISUG_MDA-042406.pdf" target="_blank">http://www.sybase.com/sb_content/102...MDA-042406.pdf</a> <br />
<br />
this above pdf has the query for analyzing the stored procedure performance queries...by considering these information<br />
<br />
I thought the below query would give the list of unused stored procedures when i run in the production server. But i observed that, this query is only pulling the stored procedures which are only called by applications in production.<br />
<br />
select object_name(ProcedureID,DBID), ProcName = isnull(object_name(ProcedureID, DBID), &quot;UNKNOWN&quot;),<br />
DBName = isnull(db_name(DBID), &quot;UNKNOWN&quot;),SPID, CpuTime, LogicalReads, PhysicalReads, MemUsageKB, StartTime, EndTime<br />
LineNumber,<br />
ElapsedTime = datediff(ms, StartTime, EndTime), KPID, BatchID <br />
from master..monSysStatement<br />
where ProcedureID != 0 and isnull(db_name(DBID), &quot;UNKNOWN&quot;) not in ( 'sybsystemprocs ' , 'tempdb')<br />
<br />
unable to figureout which monitoring table would help to know the unused stored procedures in the databases of productions server. can anyone please help me?<br />
<br />
Thanks alot in advance.</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?29-Sybase">Sybase</category>
			<dc:creator>sanandnas</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53663-unused-stored-procedures-using-monitoring-tables</guid>
		</item>
		<item>
			<title>New Extended Capabilities in Tools for MySQL Server</title>
			<link>http://forums.databasejournal.com/showthread.php?53661-New-Extended-Capabilities-in-Tools-for-MySQL-Server&amp;goto=newpost</link>
			<pubDate>Fri, 26 Apr 2013 12:20:33 GMT</pubDate>
			<description><![CDATA[Devart Team is glad to announce the release of MySQL Tools for database development and management which introduces new features as well as performance improvements. 

New extended capabilities of dbForge Query Builder for MySQL v3.0, dbForge Data Compare for MySQL v4.0, and dbForge Schema Compare for MySQL v3.0 offer users code completion and formatting features. This functionality allows using comprehensive list of abilities for quick and easier creation, and data management, comparing and synchronizing data in MySQL databases.
New enhanced tools offer developers extended suggestion lists during the typing of SQL code and object information on different database objects. Profile formatting capabilities allow users to create new profiles and edit the existing ones easier than ever.

*dbForge Query Builder for MySQL*
New version of tool for simpler queries creation and editing now offers users such improved features as:
* Visual building of DML statements
Now users can design INSERT, UPDATE, DELETE queries in Query Builder. The type of query is stated on the diagram surface, and this label allows selecting tables to use in the query right away.
* Conversion of SELECT queries into INSERT statements.
* One-click conversion of SELECT query into UPDATE or DELETE with saving of WHERE condition.
* Execution of separate subqueries to check their correctness without leaving diagram interface.
* Ability to export query results as well as data directly from a table.

For more information about dbForge Query Builder for MySQL visit product's page — http://www.devart.com/dbforge/mysql/querybuilder/. 

*dbForge Data Compare for MySQL*
Improvements of this powerful tool for comparing and synchronizing MySQL data include following software features:
* New data comparison reports now contain table data (not just a summary).
* Comparison of custom query results (along with tables and views).
* "One-to-many" objects mapping when addressing columns that were separated as a table in the target database.
* Possibility to include objects into comparison by mask, which is useful when comparing groups of tables.
* Full-text data search in comparison results.
* Analysis of comparison results is improved: 'Hide unmodified columns' option, per-column difference counters are added.


For additional information about Devart, visit http://www.devart.com/.]]></description>
			<content:encoded><![CDATA[<div>Devart Team is glad to announce the release of MySQL Tools for database development and management which introduces new features as well as performance improvements. <br />
<br />
New extended capabilities of dbForge Query Builder for MySQL v3.0, dbForge Data Compare for MySQL v4.0, and dbForge Schema Compare for MySQL v3.0 offer users code completion and formatting features. This functionality allows using comprehensive list of abilities for quick and easier creation, and data management, comparing and synchronizing data in MySQL databases.<br />
New enhanced tools offer developers extended suggestion lists during the typing of SQL code and object information on different database objects. Profile formatting capabilities allow users to create new profiles and edit the existing ones easier than ever.<br />
<br />
<b>dbForge Query Builder for MySQL</b><br />
New version of tool for simpler queries creation and editing now offers users such improved features as:<ul><li>Visual building of DML statements<br />
Now users can design INSERT, UPDATE, DELETE queries in Query Builder. The type of query is stated on the diagram surface, and this label allows selecting tables to use in the query right away.</li>
<li>Conversion of SELECT queries into INSERT statements.</li>
<li>One-click conversion of SELECT query into UPDATE or DELETE with saving of WHERE condition.</li>
<li>Execution of separate subqueries to check their correctness without leaving diagram interface.</li>
<li>Ability to export query results as well as data directly from a table.</li>
</ul>For more information about dbForge Query Builder for MySQL visit product's page — <a rel="nofollow" href="http://www.devart.com/dbforge/mysql/querybuilder/" target="_blank">http://www.devart.com/dbforge/mysql/querybuilder/</a>. <br />
<br />
<b>dbForge Data Compare for MySQL</b><br />
Improvements of this powerful tool for comparing and synchronizing MySQL data include following software features:<ul><li>New data comparison reports now contain table data (not just a summary).</li>
<li>Comparison of custom query results (along with tables and views).</li>
<li>&quot;One-to-many&quot; objects mapping when addressing columns that were separated as a table in the target database.</li>
<li>Possibility to include objects into comparison by mask, which is useful when comparing groups of tables.</li>
<li>Full-text data search in comparison results.</li>
<li>Analysis of comparison results is improved: 'Hide unmodified columns' option, per-column difference counters are added.</li>
</ul><br />
For additional information about Devart, visit <a rel="nofollow" href="http://www.devart.com/" target="_blank">http://www.devart.com/</a>.</div>

 ]]></content:encoded>
			<category domain="http://forums.databasejournal.com/forumdisplay.php?9-MySQL">MySQL</category>
			<dc:creator>Devart</dc:creator>
			<guid isPermaLink="true">http://forums.databasejournal.com/showthread.php?53661-New-Extended-Capabilities-in-Tools-for-MySQL-Server</guid>
		</item>
	</channel>
</rss>
