PDA

View Full Version : کار با SQLXML چطوریه؟



mohamdmahdi
دوشنبه 07 آبان 1386, 08:55 صبح
سلام
من یک کامپوننت فلش گرفتم به اسم MSSQLXML connector که مستقیم از فلش به sql وصل می شود .
قبل از تنظیمات فلش باید در SQLXML تنظیماتی انجام دهم
اولا منظور از SQLXML همان Configure SQL XML Support in IIS در sql است
بعد من طبق هلپ فلش این کار را کردم ولی عمل نکرد





To execute a template on MS SQL Server, you must first configure your SQLXML TimeTrax virtual directory for templates and create the template XML file.
Set up SQLXML for templates and create the template XML file


Create a directory called template under the directory where your TimeTrax data is located.

Start the SQLXML Virtual Directory Manager.

In the left panel, expand the node for your server and select your web service.

Double click on TimeTrax virtual directory.

Select the Virtual Names tab.

Select <New Virtual Name> in the listbox

Enter "template" without quotes into the name field.

Select "template" from the Type combobox.

Enter the path to the template directory you created in step 1.

Create a file named GetTimeEntries.xml in the template directory and paste the following template example into it:
<Root xmlns:sql="urn:schemas-microsoft-com:xml-sql"><sql:header sql:nullvalue="isNull"><sql:param name="projId"></sql:param></sql:header><sql:query>select * from TimeEntry where projid = @projId for xml auto</sql:query></Root>

This template accepts a parameter called projId and returns all the TimeEntry records for that project.

Test your template from your browser with the URL:
http://yourserver/TimeTrax/template/GetTimeEntries.xml?projId=1&root=root

Using your browser, save the XML from your test in a file called TimeEntries.xml. This will be used to setup the results property of your connector in the Flash movie.

You should see the TimeEntry records for project 1. Now we can create the Flash movie to access this template.




اگر از این عملیات چیزی می فهمید توضیح دهید
مرحله 13 برای من کار نکرد مثل اینکه یک xml باید در آدرسم تولید می شد
نکته : من IIS را روی کامپیوتر خانه نصب کردم و می خوام روی IIS بگیرم

AminSobati
دوشنبه 07 آبان 1386, 22:46 عصر
کدوم نسخه از SQL Server رو استفاده میکنین؟

mohamdmahdi
سه شنبه 08 آبان 1386, 13:54 عصر
کدوم نسخه از SQL Server رو استفاده میکنین؟
SQL2000